我在Program Files中安装了Java,在Windows中安装HBase时,我在C盘中重新安装了它。当我尝试启动start-hbase.sh时,它指向旧路径。我更改了Java_Home和Path并重新启动了我的机器。这是我双击start-hbase.sh时出现的错误:
/c/Java/hbase-1.1.2/bin/hbase:line 400:/ cygdrive / Program Files / Java / jdk1.8.0_6 5 / bin / java:没有这样的文件或目录 /c/Java/hbase-1.1.2/bin/hbase:第400行:/ cygdrive / Program Files / Java / jdk1.8.0_6 5 / bin / java:没有这样的文件或目录 启动master,登录到C:\ Java \ hbase-1.1.2 / logs / hbase - master-TCT-NB-J0G606 2.out C:\ Java \ hbase-1.1.2 / bin / hbase:第400行:/ cygdrive / Program Files / Java / jdk1.8.0_6 5 / bin / java:没有这样的文件或目录
Java installation directory 这是我的路径:
C:\ ProgramData \ Oracle \ Java \ javapath; C:\ Program Files \ Git \ bin; C:\ Java \ jdk1.8.0_66 \ bin; C:\ cygwin64 \ bin; C:\ apache-maven- 3.3.9 \ bin; C:\ protobuf; C:\ Program Files \ MySQL \ MySQL Server 5.7 \ bin; C:\ Program Files(x86)\ Intel \ iCLS Client \; C:\ Program Files \ Intel \ iCLS Client \;%SystemRoot%\ system32;%SystemRoot%;%SystemRoot%\ System32 \ Wbem;%SYSTEMROOT%\ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files \ Intel \ WiFi \ bin \; C:\ Program Files \ Common Files \ Intel \ WirelessCommon \; C:\ Program Files \ Intel \ Intel(R)Management Engine Components \ DAL; C:\ Program Files(x86)\ Intel \ Intel(R)Management Engine Components \ DAL; C :\ Program Files \ Intel \ Intel(R)Management Engine Components \ IPT; C:\ Program Files(x86)\ Intel \ Intel(R)Management Engine Components \ IPT;%USERPROFILE%.dnx \ bin; C:\ Program Files \ Microsoft DNX \ Dnvm \; C:\ Program Files(x86)\ MySQL \ MySQL Fabric 1.5& MySQL Utilities 1.5 \; C:\ Program Files(x86)\ MySQL \ MySQL Fabric 1.5&用于PHP的MySQL实用程序1.5 \ Doctrine扩展; C:\ Program Files \ Mercurial; C:\ Go \ bin; C:\ Program Files \ cURL \ bin; C:\ Program Files(x86)\ Skype \ Phone \; C: \ Program Files \ Microsoft Windows Performance Toolkit \
这是我尝试使用./start-hbase.sh命令启动hbase时出现的错误:
cygpath:无法转换空路径 错误:无法找到或加载主类org.apache.hadoop.hbase.util.HBaseConfTool cygpath:无法转换空路径 错误:无法找到或加载主类org.apache.hadoop.hbase.zookeeper.ZKServerTool 启动主站,登录到C:\ Java \ hbase-1.1.2 / logs / hbase-TA-MX + User(9402)-master-TCT-NB-J0G6062.out cygpath:无法转换空路径 错误:无法找到或加载主类org.apache.hadoop.hbase.master.HMaster 启动regionserver,记录到C:\ Java \ hbase-1.1.2 / logs / hbase-TA-MX + User(9402)-1-regionserver-TCT-NB-J0G6062.out cygpath:无法转换空路径 错误:无法找到或加载主类org.apache.hadoop.hbase.regionserver.HRegionServer
我在其他stackoverflow链接中看到第二部分,但这些解决方案对我不起作用(比如设置unix路径和使用引号)