Hi Geonetwork community,
I'm using geonetwork since early 2018 and this is a big and impressive
project, but I have to tell you that documentation isn't so clear, as I
would like to.
I say it as a native spanish language speaker and without formal
technological background (I'm sociologist)
Said that, I would like to tell you that I'm trying to finish installation
of a new 4.2.2.0 geonetwork instance at https://redhumus.org:8443/geonetwork
I'm using a Debian 11 VPS and could install elasticsearch and kibana
I' m receiving errors when trying to load indexes. There is a problem with
file origins or how I'm putting the code:
- Geonetwork site goes to this documentation site, but Elasticsearch
doesn't recognize some .json files. So I can't determine if I'm going well
or not.
Thanks in advance for your help.
I'm consulting:
Here I found instructions to put this indexes files to elasticsearch via
Curl:
cd /tmp
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/features.json
$ curl -X PUT http://localhost:9200/gn-features -d @features.json
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/records.json
$ curl -X PUT http://localhost:9200/gn-records -d @records.json
$ curl -O https://raw.githubusercontent.com/geonetwork/core-geonetwork/3.4.x/es/config/searchlogs.json
$ curl -X PUT http://localhost:9200/gn-searchlogs -d @searchlogs.json
After managing SSL self certs and filetype rejections I think I could put
first file "features.json-
But the second is getting new errors: So I stopped for a while and tried
writting you, maybe there is a good way to do it I can't see:
I give:
curl -k -X PUT --user elastic:password https://localhost:9200/gn-records -H
"Content-Type: application/json" --data-binary @records.json
I receive:
{"error":{"root_cause":[{"type":"not_x_content_exception","reason":"Compressor
detection can only be called on some xcontent bytes or compressed xcontent
bytes"}],"type":"not_x_content_exception","reason":"Compressor detection
can only be called on some xcontent bytes or compressed xcontent
bytes"},"status":500}curl: (6) Could not resolve host: records.json
root@anonymised.com:/tmp# curl -k -X PUT --user elastic:afz89V2Epjh1=rZA6EFO
https://localhost:9200/gn-records -H "Content-Type: application/json"
--data-binary @records.json
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},
resourceType={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed
to parse mapping: Root mapping definition has unsupported parameters:
[_default_ : {dynamic_templates=[{codelist={mapping={type=keyword},
match=codelist_*}}, {org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword},
resourceType={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root
mapping definition has unsupported parameters: [_default_ :
{dynamic_templates=[{codelist={mapping={type=keyword}, match=codelist_*}},
{org={mapping={type=keyword}, match=*Org*}},
{contact={mapping={type=keyword}, match=*contact*}},
{date={mapping={type=date}, match=*Date*}},
{dateMonth={mapping={type=keyword}, match=*Month*}},
{dateYear={mapping={type=short}, match=*Year*}},
{measure={mapping={type=keyword}, match=measure_*}},
{operationAllowed={mapping={type=keyword}, match=op*}},
{validationStatus={mapping={type=keyword}, match=valid*}},
{synInspireAnnexesType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireAnnexes, type=string}, match=inspireAnnex*}},
{synInspireThemeType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=synInspireThemes, type=string}, match=inspireTheme*}},
{inspireServiceType={mapping={search_analyzer=keyword, fielddata=true,
analyzer=keepInspireServiceTypes, type=string},
match=inspireServiceType}}]}] [records : {properties={lineage={type=text},
serviceType={type=keyword}, isAboveThreshold={type=boolean},
rating={type=short}, geom={precision=10km, tree=quadtree, type=geo_shape},
resourceCredit={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, resourceLanguage={type=keyword}, useLimitation={type=text,
fields={keyword={ignore_above=256, type=keyword}}}, linkUrl={type=text},
resolutionScaleDenominator={type=integer}, id={type=keyword},
tag={type=keyword}, metadataIdentifier={type=keyword},
hasInspireTheme={type=boolean}, resourceTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
inspireThemeNumber={type=short}, resourceAltTitle={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasxlinks={type=boolean}, tagNumber={type=short},
otherConstraints={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, documentStandard={type=keyword}, dateStamp={type=date},
harvesterId={type=keyword}, spatialRepresentationType={type=keyword},
isTemplate={type=keyword}, topic={type=keyword},
isHarvested={type=boolean}, status={type=short}, xlink={type=keyword},
documentType={type=keyword}, isOpenData={type=keyword},
pointOfTruthURL={type=text}, document={index=no, type=string,
doc_values=false}, link={type=text}, validReport={index=no, type=string,
doc_values=false}, mainLanguage={type=keyword},
recordOperateOn={type=keyword}, harvesterUuid={type=keyword},
groupPublished={type=keyword}, scope={type=keyword},
popularity={type=short}, root={type=keyword}, resourceAbstract={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
coordinateSystem={type=text, fields={keyword={ignore_above=256,
type=keyword}}}, accessConstraints={type=text,
fields={keyword={ignore_above=256, type=keyword}}},
hasOverview={type=boolean}, owner={type=keyword},
standardName={type=keyword}, isSchemaValid={type=boolean},
groupOwner={type=keyword}, isValid={type=boolean}, overviewUrl={type=text},
resolutionDistance={type=keyword}, location={type=geo_point},
linkProtocol={type=keyword}, resourceType={type=keyword}}}]"}},"status":400}
--
----
Luis Miguel Sánchez Zoque
@kublaykan <http://www.twitter.com/kublaykan>
http://redhumus.org
Copyleft. Hack the planet an have a fun day!!!
OSM USER: OMNBUS <http://wiki.openstreetmap.org/wiki/WikiProject_Colombia>
https://primerrespondiente.wordpress.com
https://www.gnu.org/copyleft/