Code: Select all
http://localhost:8983/solr
Code: Select all
solr.client = HttpSolrClient
solr.http.url = http://localhost:8983/solr
Code: Select all
./solr create -c alerts -s 1 -rf 1
Ziel
Ich möchte eine einfache GeoJSON-Datei in den DDF-Katalog aufnehmen.
Datei: /tmp/test-location.geojson
Code: Select all
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-77.0369, 38.9072]
},
"properties": {
"name": "Test Location"
}
}
]
}
Code: Select all
catalog:ingest -t geojson /tmp/test-location.geojson
Code: Select all
catalog:ingest -t geojson -s catalog /tmp/test-location.geojson
Code: Select all
0 file(s) ingested in 0 seconds
1 file(s) failed to be ingested. See the ingest log for more details.
Code: Select all
log:set DEBUG org.codice.ddf.commands.catalog.IngestCommand
Code: Select all
2025-12-03T13:28:26,449 | INFO | location.geojson | ingestLogger | f.commands.catalog.IngestCommand 338 | 455 - catalog-core-commands - 2.26.45 | 0 file(s) ingested in 0 seconds [0 records/sec]
2025-12-03T13:28:26,449 | WARN | location.geojson | ingestLogger | f.commands.catalog.IngestCommand 351 | 455 - catalog-core-commands - 2.26.45 | 1 file(s) failed to be ingested.
(repeats every attempt)
Code: Select all
Error retrieving system alert.
org.codice.ddf.persistence.PersistenceException
Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://localhost:8983/solr/alerts:
can not sort on multivalued field: id_txt of type: text_general
GeoJSON-Transformatoren werden in service:list:
angezeigt
Code: Select all
id = catalog.data.metacard.geojson
id = geojson
displayName = GeoJSON
shortname = geojson
Code: Select all
0 ingested, 1 failed
Code: Select all
"Persistent Storage Not Responding. Could Not Retrieve Alerts."
Ich bin nicht sicher, welche Kerne oder Konfigurationssätze DDF benötigt, wenn externes Solr verwendet wird.
Frage
Welche Solr-Kerne und Konfigurationssätze benötigt DDF 2.26.45 genau, wenn externes Solr verwendet wird, und wie konfiguriere ich sie entsprechend? dass:
- GeoJSON-Aufnahme funktioniert
- Der Solr-Fehler „Kann nicht nach mehrwertigem Feld sortieren: id_txt“ stoppt
- Der interne Alarm-/Persistenzspeicher wird ordnungsgemäß initialisiert
Mobile version