I built this standalone Java application that is connecting to
elasticSearch using Transport client on my local machine. I am trying to
figure out how to enable logging in it (This is to help me debug a wiered
streamcorrupexception that i am getting in my production cluster) but not
able to get it working. Can some one help
This is how my log4j.xml looks like log4j.xml and
this is how my pom.xml file for application looks like pom.xml. My
java client does create simple TransportClient and executes match all query
on it, the query is working ok. But i dont see much logs being created. I
also tried setting --Des.logger.level and passing the -Dlog4j.configuration= file:////Users/sunil/temp/log4j.xml
[2015-Mar-13 06:56:41:437] DEBUG [Robert Bruce Banner]
node_sampler_interval[5s]
[2015-Mar-13 06:56:41:437] DEBUG [Robert Bruce Banner]
node_sampler_interval[5s]
[2015-Mar-13 06:56:41:500] DEBUG [Robert Bruce Banner] adding address
[[#transport#-1][sunil.local][inet[localhost/127.0.0.1:9300]]]
[2015-Mar-13 06:56:41:500] DEBUG [Robert Bruce Banner] adding address
[[#transport#-1][sunil.local][inet[localhost/127.0.0.1:9300]]]
On Friday, March 13, 2015 at 7:27:49 AM UTC-7, Sunil Patil wrote:
I built this standalone Java application that is connecting to
elasticSearch using Transport client on my local machine. I am trying to
figure out how to enable logging in it (This is to help me debug a wiered
streamcorrupexception that i am getting in my production cluster) but not
able to get it working. Can some one help
This is how my log4j.xml looks like log4j.xml and this
is how my pom.xml file for application looks like pom.xml. My java
client does create simple TransportClient and executes match all query on
it, the query is working ok. But i dont see much logs being created. I also
tried setting --Des.logger.level and passing the -Dlog4j.configuration= file:////Users/sunil/temp/log4j.xml
[2015-Mar-13 06:56:41:437] DEBUG [Robert Bruce Banner]
node_sampler_interval[5s]
[2015-Mar-13 06:56:41:437] DEBUG [Robert Bruce Banner]
node_sampler_interval[5s]
[2015-Mar-13 06:56:41:500] DEBUG [Robert Bruce Banner] adding address
[[#transport#-1][sunil.local][inet[localhost/127.0.0.1:9300]]]
[2015-Mar-13 06:56:41:500] DEBUG [Robert Bruce Banner] adding address
[[#transport#-1][sunil.local][inet[localhost/127.0.0.1:9300]]]
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.