linux - Elasticsearch can't write to log files -


I would like to activate the log of elasticsearch.

When I run the elastic search binary, I know that I have problems with logging: the configuration can not be loaded!

Here is the output:

  ~ $ sudo / usr / share / elasticsearch / bin / elasticsearch failed to configure logging ... org.elasticsearch.ElasticsearchException: org. on elasticsearch.common.logging.log4j.LogConfigurator.configure org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig (LogConfigurator.java:117) on org.elasticsearch.bootstrap.Elasticsearch.main failed to load configuration logging on ( because of org.elasticsearch.bootstrap.Bootstrap.main (Bootstrap.java:178) on org.elasticsearch.bootstrap.Bootstrap.setupLogging (Bootstrap.java:94) on LogConfigurator.java:81) (Elasticsearch.java:32) : java.nio.file.NoSuchFileException: sun.nio.fs.UnixException.translateToIOException at / usr / share / elasticsearch / config (UnixEx ception.java:86) sun.nio.fs.UnixException.rethrowAsIOException ( UnixException.java:102) (UnixFileSystemProvider sun.nio.fs.UnixFileSystemProvider.readAttributes on SunkniokfskUnixExceptionkrethrowAsIOException (UnixExceptionkjava:l07) Ken) on sun.nio.fs.UnixFileAttributeViews $ Basic. Java: 144) readAttributes (UnixFileAttributeViews.java.5) at java.nio.file at sun.nio.fs.LinuxFileSystemProvider.readAttributes (LinuxFileSystemProvider.java:97). Files.readAttributes (Files.java:1686) on java.nio.file on java.nio.file.FileTreeWalker.walk (FileTreeWalker.java:109) java.nio.file.FileTreeWalker.walk (FileTreeWalker.java:69) be found on .Files.walkFileTree org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig (Files.java:2602) (LogConfigurator.java:107) ... 4 more log4j: Warning not appenders logger (node) Could. Log4j: Start the Warning Log4j system properly. Log4j: See Warning For more information, see http://logging.apache.org/log4j/1.2/faq.html#noconfig. Java Hotspot (TM) Server VM Alert: You have loaded the library /usr/share/elasticsearch/lib/sigar/libsigar-x86-linux.so, which can disable stack guards VM now to fix stack guards Will try. It is highly recommended that you 'execstack -c & lt; Libfile & gt; Fix the library with, or link it with '-z noxic stack'  

I am running under linuxmint 17 and using the latest ES.

If you type yum or apt-get If you install elastic search using a package manager, then you should not start elastic search in this way. Try to use the service: for example /etc/init.d/elasticsearch or sudo service elasticsearch start

of the order You should also check the logging. The IML file is in the location mentioned in the stacks trace: / usr / share / elasticsearch / config

to begin the elastic search. Sudo is not good to use , you can run pseudo-logical search to run as an elasticsearch user, but I can say second speech I also mentioned like the use of service calls.

Hopefully

>

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -