Manual start of ES failing

Hi there,

For my purpose I need to start ES from the commandline myself (so no
scripts involved).

I currently try to do this with (root folder of ES is
/root/myproject/dataengine/):

/usr/bin/java -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError
-Delasticsearch -Des-foreground=no
-Des.path.home="/root/myproject/dataengine" -cp
";/root/myproject/dataengine/lib/elasticsearch-0.19.10.jar;/root/myproject/dataengine/lib/
;/root/myproject/dataengine/config/log4j.properties;/root/myproject/dataengine/lib/sigar/"
"org.elasticsearch.bootstrap.ElasticSearch"

However this does not work:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/elasticsearch/bootstrap/ElasticSearch

Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.ElasticSearch

  •    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)*
    
  •    at java.security.AccessController.doPrivileged(Native Method)*
    
  •    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)*
    
  •    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)*
    
  •    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)*
    
  •    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)*
    

Could not find the main class: org.elasticsearch.bootstrap.ElasticSearch.
Program will exit.

Strang thing is, the Java code I use to start ES up works in Windows (this
is from a CentOS box). Does anyone see a strange folder structure or
something?

Best regards,

Robin Verlangen
Software engineer
*
*
W http://www.robinverlangen.nl
E robin@us2.nl

http://goo.gl/Lt7BC

Disclaimer: The information contained in this message and attachments is
intended solely for the attention and use of the named addressee and may be
confidential. If you are not the intended recipient, you are reminded that
the information remains the property of the sender. You must not use,
disclose, distribute, copy, print or rely on this e-mail. If you have
received this message in error, please contact the sender immediately and
irrevocably delete this message and any copies.

--

Change ; to : for linux in the classpath. Thats all.

Sent from my iPhone

On Dec 9, 2012, at 1:52 PM, Robin Verlangen robin@us2.nl wrote:

Hi there,

For my purpose I need to start ES from the commandline myself (so no scripts involved).

I currently try to do this with (root folder of ES is /root/myproject/dataengine/):

/usr/bin/java -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des-foreground=no -Des.path.home="/root/myproject/dataengine" -cp ";/root/myproject/dataengine/lib/elasticsearch-0.19.10.jar;/root/myproject/dataengine/lib/;/root/myproject/dataengine/config/log4j.properties;/root/myproject/dataengine/lib/sigar/" "org.elasticsearch.bootstrap.ElasticSearch"

However this does not work:

Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/bootstrap/ElasticSearch
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.bootstrap.ElasticSearch
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.elasticsearch.bootstrap.ElasticSearch. Program will exit.

Strang thing is, the Java code I use to start ES up works in Windows (this is from a CentOS box). Does anyone see a strange folder structure or something?

Best regards,

Robin Verlangen
Software engineer

W http://www.robinverlangen.nl
E robin@us2.nl

Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies.

--

--

Thank you Randy, that should work. Stupid me :wink:

Best regards,

Robin Verlangen
Software engineer
*
*
W http://www.robinverlangen.nl
E robin@us2.nl

http://goo.gl/Lt7BC

Disclaimer: The information contained in this message and attachments is
intended solely for the attention and use of the named addressee and may be
confidential. If you are not the intended recipient, you are reminded that
the information remains the property of the sender. You must not use,
disclose, distribute, copy, print or rely on this e-mail. If you have
received this message in error, please contact the sender immediately and
irrevocably delete this message and any copies.

On Mon, Dec 10, 2012 at 2:39 AM, Randy randall.mcree@gmail.com wrote:

Change ; to : for linux in the classpath. Thats all.

Sent from my iPhone

On Dec 9, 2012, at 1:52 PM, Robin Verlangen robin@us2.nl wrote:

Hi there,

For my purpose I need to start ES from the commandline myself (so no
scripts involved).

I currently try to do this with (root folder of ES is
/root/myproject/dataengine/):

/usr/bin/java -Xms256m -Xmx1g -Xss256k -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError
-Delasticsearch -Des-foreground=no
-Des.path.home="/root/myproject/dataengine" -cp
";/root/myproject/dataengine/lib/elasticsearch-0.19.10.jar;/root/myproject/dataengine/lib/
;/root/myproject/dataengine/config/log4j.properties;/root/myproject/dataengine/lib/sigar/"
"org.elasticsearch.bootstrap.ElasticSearch"

However this does not work:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/elasticsearch/bootstrap/ElasticSearch

Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.ElasticSearch

  •    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)*
    
  •    at java.security.AccessController.doPrivileged(Native Method)*
    
  •    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)*
    
  •    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)*
    
  •    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)*
    
  •    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)*
    

Could not find the main class:
org.elasticsearch.bootstrap.ElasticSearch. Program will exit.

Strang thing is, the Java code I use to start ES up works in Windows (this
is from a CentOS box). Does anyone see a strange folder structure or
something?

Best regards,

Robin Verlangen
Software engineer
*
*
W http://www.robinverlangen.nl
E robin@us2.nl

http://goo.gl/Lt7BC

Disclaimer: The information contained in this message and attachments is
intended solely for the attention and use of the named addressee and may be
confidential. If you are not the intended recipient, you are reminded that
the information remains the property of the sender. You must not use,
disclose, distribute, copy, print or rely on this e-mail. If you have
received this message in error, please contact the sender immediately and
irrevocably delete this message and any copies.

--

--

--