启动Hbase:cygpath:不能转换空路径 [英] Starting Hbase : cygpath: can't convert empty path
问题描述
我希望有人可以帮我解决这个问题:
I hope somebody can help me with this problemoo:
启动hbase,得到这个错误:
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
此错误只发生在hbase-0.90。 4和hbase-0.90.6,但不会发生在hbase-0.94.9。我使用Windows 7 x64和CygWin设置2.774。
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.
注意1:我按照在Windows上安装HBase 和此处
注意2:重要的是我设置hbase-0.90.X因为后来我会使用Nutch 2.2.1
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
感谢
推荐答案
也许在将unix风格路径转换为windows风格路径时,cygpath或路径中的一些问题实际上是空的。记住cygpath是一个cygwin实用程序,将unix样式文件路径转换为Windows样式文件路径,反之亦然。我个人不完全相信这一点。所以,请确保你不面对这些种种问题。为了顺利运行,我想建议一些事情:
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 :
- 修改行#export HBASE_CLASSPATH = 在 hbase-env.sh 文件中:
export HBASE_CLASSPATH = / cygdrive / c / programs / hbase-0.90.4 / lib / - 您的hbse-site.xml中的属性 hbase.rootdir 符合您的cygwin环境:
像 file: // C:/ cygwin / root / tmp / hbase / data
- 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
不知怎的,我觉得使用Hadoop / HBase窗口总是一种痛苦。你可以通过自己一个Linux盒子(如果可能)或使用一些虚拟机来避免这些问题。
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.:您的Hadoop运行正常(如果有)?
P. S. : Is your Hadoop running fine(if you have it)?
编辑:
如果不存在,请在 hbase 目录中的 hbase 文件中添加以下行:
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.
这篇关于启动Hbase:cygpath:不能转换空路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!