Hbase start: cygpath: cannot convert empty path

I hope someone can help me with this problem:

By running hbase, I get this error:

$ ./start-hbase.sh cygpath: can't convert empty path cygpath: can't convert empty path soporte@localhost 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 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 occurs with hbase-0.90.4 and hbase-0.90.6, but does not happen with hbase-0.94.9. I am using Windows 7 x64 and CygWin setup 2.774.

Note 1: I followed the instructions Install HBase on Windows and here Note 2: It is important for me to configure hbase-0.90.X, because later I will use Nutch 2.2.1

thanks

+4
source share
2 answers

There might be some problem in converting Unix style paths to a Windows style path on cygpath or the path is actually empty. Remember, cygpath is a cygwin utility that converts unix-style file paths to Windows-style file paths and vice versa. I personally do not trust this completely. Therefore, please make sure that you do not encounter these problems. For smooth operation, I would like to offer a couple of things:

  • Change the line # export HBASE_CLASSPATH = in the hbase-env.sh file to suit your environment: export HBASE_CLASSPATH = / cygdrive / c / programs / hbase-0.90.4 / lib /
  • The hbase.rootdir property in your hbse-site.xml matches your cygwin environment: Something like the file: /// C: / cygwin / root / tmp / hbase / data strong>

Somehow I feel that using Hadoop / HBase on windows is always a pain. You can avoid these problems by providing yourself with a Linux box (if possible) or by using some kind of virtual machine.

NTN

R. S .: Does your Hadoop work fine (if you have one)?

Edit:

Add these lines to the hbase file in the hbase-0.90.4 / bin directory , if not:

 # 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 old versions right now with me so I can double-check.

+1
source

Try

 bin/start-hbase.cmd 

instead

 bin/start-hbase.sh 
-one
source

Source: https://habr.com/ru/post/1493730/


All Articles