rob1
(rob)
May 8, 2017, 9:10pm
1
Hi
I'm trying to run elasticsearch 5,4 manually by entering (exact line created by service elasticsearch start
):
/usr/bin/java -Xms200m -Xmx200m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/usr/share/elasticsearch -cp /usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -d -p /var/run/elasticsearch/elasticsearch.pid -Edefault.path.logs=/var/log/elasticsearch -Edefault.path.data=/var/lib/elasticsearch -Edefault.path.conf=/etc/elasticsearch
Unfortunately it generates error mesage:
Error: Could not find or load main class .usr.share.elasticsearch.lib.HdrHistogram-2.1.9.jar
Above execution command with parameters is identical to this which is created by:
service elasticsearch start
With previous elasticsearch 5.3.2 it worked fine.
Any ideas how to run it manually?
rob1
(rob)
May 9, 2017, 9:57am
3
I install it by just (ubuntu 14.04): dpkg -i elasticsearch-5.4.0.deb
After that service elasticsearch start
works as expected but the same line executed manually generates error message:
Error: Could not find or load main class .usr.share.elasticsearch.lib.HdrHistogram-2.1.9.jar
rob1
(rob)
May 9, 2017, 12:49pm
4
Problem solved, it's about quotation marks around -cp
parameter, proper command looks like:
/usr/bin/java -Xms200m -Xmx200m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/usr/share/elasticsearch -cp "/usr/share/elasticsearch/lib/*" org.elasticsearch.bootstrap.Elasticsearch -d -p /var/run/elasticsearch/elasticsearch.pid -Edefault.path.logs=/var/log/elasticsearch -Edefault.path.data=/var/lib/elasticsearch -Edefault.path.conf=/etc/elasticsearch
Thanks anyway.
system
(system)
Closed
June 6, 2017, 1:00pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.