After trying and failing to run elasticsearch/bin/plugin, which would fail
with this:
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch
/plugins/PluginManager
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.plugins.
PluginManager
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.plugins.PluginManager.
Program will exit.
I dug in to see what was being run by echoing the exec line at the end
of elasticsearch/bin/plugin. As a test, I decided to run a stripped down
version of the command, to see whether I could get the usage menu instead
of the error above. Here is the stripped down command:
This command works fine on my linux machine, but not in my Mac vm, running
ubuntu 12.04. I cannot figure it out. This gist shows the command and the
output:
After trying and failing to run elasticsearch/bin/plugin, which would fail
with this:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/elasticsearch/plugins/PluginManager
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.plugins.PluginManager
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.plugins.PluginManager.
Program will exit.
I dug in to see what was being run by echoing the exec line at the end of
elasticsearch/bin/plugin. As a test, I decided to run a stripped down
version of the command, to see whether I could get the usage menu instead of
the error above. Here is the stripped down command:
This command works fine on my linux machine, but not in my Mac vm, running
ubuntu 12.04. I cannot figure it out. This gist shows the command and the
output:
What are the file permissions of the jars? Perhaps you installed as root
and are running as a different user. Not sure if a normal user can write
into /var/local on a Mac.
BTW, you should be using the forked repo mobz/elasticsearch-head.
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.