Does anyone know how HBase can run on Windows under Cygwin?
I managed to configure everything, for example, keys for automatic login with SSH, but Im stuck with the following error message:
localhost: +======================================================================+ localhost: | Error: JAVA_HOME is not set and Java could not be found | localhost: +----------------------------------------------------------------------+ localhost: | Please download the latest Sun JDK from the Sun Java web site | localhost: | > http://java.sun.com/javase/downloads/ < | localhost: | | localhost: | HBase requires Java 1.6 or later. | localhost: | NOTE: This script will find Sun Java whether you install using the | localhost: | binary or the RPM based installer. | localhost: +======================================================================+
...
java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at sun.launcher.LauncherHelper.getMainMethod(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source)
I already set .bash_profile to point to:
export JAVA_HOME='/usr/lib/jre1.6.1'
which is a symbolic link to a real jre
/usr/lib/jre1.6.1 -> /cygdrive/c/Java/jre7/
java hbase cygwin
Jack gibson
source share