Starting Hbase : cygpath: can't convert empty path

青春壹個敷衍的年華 提交于 2019-12-19 07:34:29

问题


I hope somebody can help me with this problemoo:

Starting hbase, I get this error:

$ ./start-hbase.sh
cygpath: can't convert empty path
cygpath: can't convert empty path
soporte@localhost's password:
localhost: starting zookeeper, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-zookeeper-CNEOSYLAP.out
localhost: cygpath: can't convert empty path
starting master, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-master-CNEOSYLAP.out
cygpath: can't convert empty path
soporte@localhost's password:
localhost: starting regionserver, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-regionserver-CNEOSYLAP.out
localhost: cygpath: can't convert empty path

This error only happens with hbase-0.90.4 and hbase-0.90.6 but is not happening with hbase-0.94.9. I am using Windows 7 x64 and CygWin setup 2.774.

Note 1 : I was following instructions from Installing HBase on Windows and here Note 2 : It is important to me setting up hbase-0.90.X because later i will use Nutch 2.2.1

Thanks


回答1:


Perhaps some problem in the conversion of unix style paths into windows style path by cygpath or the path is actually empty. Remember cygpath is a cygwin utility that converts unix style file paths into windows style file paths, and vice versa. I personally don't trust this completely. So, please make sure that you are not facing those kinda issues. For a smooth functioning, I would like to suggest a couple of things though :

  • Modify the line # export HBASE_CLASSPATH= in hbase-env.sh file as per your environment : export HBASE_CLASSPATH=/cygdrive/c/programs/hbase-0.90.4/lib/
  • The property hbase.rootdir in your hbse-site.xml is in terms with your cygwin environment : Something like file:///C:/cygwin/root/tmp/hbase/data

Somehow I feel that using Hadoop/HBase on windows is always a pain. You can avoid these problems by getting yourself a Linux box(if possible) or make use of some VM.

HTH

P. S. : Is your Hadoop running fine(if you have it)?

Edit :

Add these lines in you hbase file under hbase-0.90.4/bin directory, if not present :

# cygwin path translation
if $cygwin; then
  CLASSPATH=`cygpath -p -w "$CLASSPATH"`
  HBASE_HOME=`cygpath -d "$HBASE_HOME"`
  HBASE_LOG_DIR=`cygpath -d "$HBASE_LOG_DIR"`

I do not have older releases right now with me so that I can crosscheck.




回答2:


Try

bin/start-hbase.cmd

instead of

bin/start-hbase.sh


来源:https://stackoverflow.com/questions/17887365/starting-hbase-cygpath-cant-convert-empty-path

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!