【发布时间】:2017-05-13 03:54:43
【问题描述】:
dinesh@dinesh-VirtualBox:/usr/local/hbase-1.2.5/bin$ start-hbase.sh
如下图所示
localhost: zookeeper running as process 6637. Stop it first.
starting master, logging to /usr/local/hbase-1.2.5/logs/hbase-dinesh-master-dinesh-VirtualBox.out
starting regionserver, logging to /usr/local/hbase-1.2.5/logs/hbase-dinesh-1-regionserver-dinesh-VirtualBox.out
但是 dinesh@dinesh-VirtualBox:/usr/local/hbase-1.2.5/bin$ hbase shell
LoadError: load error: hbase -- java.lang.reflect.InaccessibleObjectException: Unable to make member of class
sun.nio.cs.Unicode accessible: module java.base does not export
sun.nio.cs to unnamed module @5befbac1
require at org/jruby/RubyKernel.java:1062
(root) at /usr/local/hbase-1.2.5/bin/hirb.rb:118
hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:54310/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
在 hbase-env.sh 我在下面一行添加了
export JAVA_HOME=/usr/lib/jvm/java-9-openjdk-amd64
在 .bashrc 文件中,添加到下面几行
export HBASE_HOME=/usr/local/hbase-1.2.5
export PATH=$PATH:$HBASE_HOME/bin
不知道问题出在哪里,有谁知道解决办法,请在这里发帖。提前谢谢!!!!
【问题讨论】: