Any time I try to call the Elasticsearch script (like to change my node name) I get the following error:
Exception in thread "main" ElasticsearchException(Failed to load logging configuration]; nested: NoSuchFileException[/usr/share/elasticsearch/config];
Likely root cause: java.no.file.NoSuchFileException:[/usr/share/elasticsearch/config];
at sun.nio.fs.UnixException.translateToI0Exception(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileattributeViews$Basic.readattributes(UnixFileattributeViews.java:55)
at sun.nio.fs.UnixFileSystemProuider.readattributes(UnixFileSystemProuider.java:144)
at sun.nio.fs.LinuxFileSystemProuider.readattributesainuxFileSystemProuider.java:97)
at java.nio.file.Files.readattributes(Files.java:1686)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:109)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69)
at java.nio.file.Files.walkFileTree(Files.java:2602)
at org.elasticsearch.common.logging.log4j.LogConfigurator.resolueConfig(LogConfigurator.java:142)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:103)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
How do I correct this?