I am trying to install elasticsearch on Redhat. I have downloaded and
installed latest elasticsearch from the website. While starting
elasticsearch , I am getting following exception:
[root@common ~]# /usr/share/elasticsearch/bin/elasticsearch
Failed to configure logging...
org.elasticsearch.ElasticsearchException: Failed to load logging
configuration
at org.elasticsearch.common.logging.log4j.LogConfigurator.
resolveConfig(LogConfigurator.java:117)
at org.elasticsearch.common.logging.log4j.LogConfigurator.
configure(LogConfigurator.java:81)
at org.elasticsearch.bootstrap.Bootstrap.setupLogging(Bootstrap.java:94)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32) Caused by: java.nio.file.NoSuchFileException:
/usr/share/elasticsearch/config
at sun.nio.fs.UnixException.translateToIOException(
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.UnixFileSystemProvider.readAttributes(
UnixFileSystemProvider.java:144)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(
LinuxFileSystemProvider.java:97)
at java.nio.file.Files.readAttributes(Files.java:1684)
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:2600)
at org.elasticsearch.common.logging.log4j.LogConfigurator.
resolveConfig(LogConfigurator.java:107)
... 4 more
log4j:WARN No appenders could be found for logger (node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
I don't see this file on the system: /usr/share/elasticsearch/config
Is this a problem in latest rpm package on the website?
You should really use service to handle starting it - (sudo) service
elasticsearch start
This will include the correct configurations,
/etc/elasticsearch/elasticsearch.yml and /etc/default/elasticsearch.
I am trying to install elasticsearch on Redhat. I have downloaded
and installed latest elasticsearch from the website. While starting
elasticsearch , I am getting following exception:
[root@common ~]# /usr/share/elasticsearch/bin/elasticsearch
Failed to configure logging...
org.elasticsearch.ElasticsearchException: Failed to load logging
configuration
at org.elasticsearch.common.logging.log4j.LogConfigurator.
resolveConfig(LogConfigurator.java:117)
at org.elasticsearch.common.logging.log4j.LogConfigurator.
configure(LogConfigurator.java:81)
at org.elasticsearch.bootstrap.Bootstrap.setupLogging(
Bootstrap.java:94)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Elasticsearch.main(
Elasticsearch.java:32) Caused by: java.nio.file.NoSuchFileException:
/usr/share/elasticsearch/config
at sun.nio.fs.UnixException.translateToIOException(
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.UnixFileSystemProvider.readAttributes(
UnixFileSystemProvider.java:144)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(
LinuxFileSystemProvider.java:97)
at java.nio.file.Files.readAttributes(Files.java:1684)
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:2600)
at org.elasticsearch.common.logging.log4j.LogConfigurator.
resolveConfig(LogConfigurator.java:107)
... 4 more
log4j:WARN No appenders could be found for logger (node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for
more info.
I don't see this file on the system: /usr/share/elasticsearch/config
Is this a problem in latest rpm package on the website?
I am trying to install elasticsearch on Redhat. I have downloaded
and installed latest elasticsearch from the website. While starting
elasticsearch , I am getting following exception:
[root@common ~]# /usr/share/elasticsearch/bin/elasticsearch
Failed to configure logging...
org.elasticsearch.ElasticsearchException: Failed to load logging
configuration
at org.elasticsearch.common.logging.log4j.LogConfigurator.
resolveConfig(LogConfigurator.java:117)
at org.elasticsearch.common.logging.log4j.LogConfigurator.
configure(LogConfigurator.java:81)
at org.elasticsearch.bootstrap.Bootstrap.setupLogging(
Bootstrap.java:94)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Elasticsearch.main(
Elasticsearch.java:32) Caused by: java.nio.file.NoSuchFileException:
/usr/share/elasticsearch/config
at sun.nio.fs.UnixException.translateToIOException(
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.UnixFileSystemProvider.readAttributes(
UnixFileSystemProvider.java:144)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(
LinuxFileSystemProvider.java:97)
at java.nio.file.Files.readAttributes(Files.java:1684)
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:2600)
at org.elasticsearch.common.logging.log4j.LogConfigurator.
resolveConfig(LogConfigurator.java:107)
... 4 more
log4j:WARN No appenders could be found for logger (node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for
more info.
I don't see this file on the system: /usr/share/elasticsearch/config
Is this a problem in latest rpm package on the website?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.