Ich versuche, meine elasticsearh Port auf 9300 zu setzen, aber wenn ich http.port auf 9300 elasticsearch nicht funktioniert. Eigentlich bin ich ein Grails Web-App entwickeln eine Elasticsearch Instanz mit, aber wenn ich die App die folgende Fehlermeldung angezeigt laufenWie kann ich meinen elasticsearh port auf 9300 setzen?
ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name 'searchableClassMappingConfigurator': Invocation of init method failed; nested exception is org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
Message: Error creating bean with name 'searchableClassMappingConfigurator': Invocation of init method failed; nested exception is org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
ich andere Antwort gelesen haben, aber niemand habe mein Problem zu lösen. Irgendwelche Ideen??
Meine Konfigurationsdatei ist:
elasticSearch { client.mode = 'transport' client.hosts = [ [host:'localhost', port:9300] ] disableAutoIndex = 'true' }
Nun zeigen grails mir folgende Fehlermeldung:
[localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: No datastore implementation specified Message: No datastore implementation specified
Line | Method
->> 135 | doCall in ElasticsearchGrailsPlugin$_closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 754 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
| 584 | beans . . . . . . . . . . in ''
| 527 | invokeMethod in ''
| 262 | run . . . . . . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
Error |
Forked Grails VM exited with error
Wirklich ich in Internet gesurft, aber ich habe nicht eine Lösung für dieses Problem finden, ich muss eine Verbindung zu einer ES-Instanz herstellen. Danke im Voraus. Entschuldigung für mein Englisch.
Ich ändere den Port in meiner Config.groovy, wo die Elasticsearch Config es ist, aber der Fehler bleibt. Ich habe eine ElasticSearch-Instanz mit einem Knoten, aber ich kann nicht erkennen, was falsch ist. Irgendeine Idee?? –
Können Sie Ihre Konfiguration anhängen und Ihr Setup beschreiben? – pkhlop
Das ist meine Konfigurationsdatei –