Elasticsearch throwing exception while starting on Redhat

Hi,

  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?

Thnx

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6636c7e3-e614-46ca-b820-04545b56e372%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 2 August 2014 01:13, mailtov16@gmail.com wrote:

Hi,

  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?

Thnx

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6636c7e3-e614-46ca-b820-04545b56e372%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/6636c7e3-e614-46ca-b820-04545b56e372%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624Y0fgusp%2Bz5PMbUttXJT1YDBw-5eV2AsLxwsBh%3D5k0WEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

You should use the service wrapper on RHEL/CentOS

It works like a charme.

Jörg

On Fri, Aug 1, 2014 at 5:13 PM, mailtov16@gmail.com wrote:

Hi,

  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?

Thnx

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6636c7e3-e614-46ca-b820-04545b56e372%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/6636c7e3-e614-46ca-b820-04545b56e372%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGbUXinLZ5uBhbzYVVS%3DXK7wrK8g%2BWyz_ksUYEtyQZ3zA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.