2013-10-04 51 views
1

我一直在試圖在Windows上運行cygwin上的hbase,並且在正確工作時遇到了一些麻煩。 問題是,我一直遇到了一些麻煩,通過這個錯誤,因爲我一直無法找到任何有關此異常的幫助。Zookeeper在cygwin中使用hbase時的異常

[email protected] ~/apache/hbase 
$ ./bin/start-hbase.sh 
localhost: starting zookeeper, logging to /home/user/apache/hbase/bin/../logs/hbase-myself-zookeeper-myself.out 
starting master, logging to /home/user/apache/hbase/bin/../logs/hbase-myself-master-myself.out 
java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException 
     at java.lang.Class.getDeclaredMethods0(Native Method) 
     at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) 
     at java.lang.Class.getMethod0(Class.java:2764) 
     at java.lang.Class.getMethod(Class.java:1653) 
     at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) 
     at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) 
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException 
     at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
     at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
localhost: starting regionserver, logging to /home/user/apache/hbase/bin/../logs/hbase-myself-regionserver-myself.out 
localhost: java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException 
localhost:  at java.lang.Class.getDeclaredMethods0(Native Method) 
localhost:  at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) 
localhost:  at java.lang.Class.getMethod0(Class.java:2764) 
localhost:  at java.lang.Class.getMethod(Class.java:1653) 
localhost:  at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) 
localhost:  at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) 
localhost: Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException 
localhost:  at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
localhost:  at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 

爲了得到這個跑,我一直在與這些網站:這些
http://hbase.apache.org/book/quickstart.html
http://hbase.apache.org/cygwin.html
http://archive.cloudera.com/cdh/3/hbase/cygwin.html
http://alans.se/blog/2010/hadoop-hbase-cygwin-windows-7-x64/

沒有對這個問題的解決方案,所以我不關於我做錯了什麼的線索。

我可以確認zookeeper zookeeper-3.4.5.jar在/ home/user/apache/hbase/lib中
我使用的是hbase版本0.94.12。 我正在使用cygwin版本1.7.25 x64版本。

回答

0

HBASE版本= 0.94.12 Cygwin環境

轉到/hbase/conf/Hbase-env.sh

HBASE_CLASSPATH = /cygdrive/c/cygwin/usr/local/hbase-0.94.12 /lib/zookeeper-3.4.5.jar

將解決飼養員例外...

+1

這不能解決任何問題......類路徑是include目錄,而不是文件。 – brunoais