Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hadoop Hbase外壳提供加载错误_Hadoop_Hbase - Fatal编程技术网

Hadoop Hbase外壳提供加载错误

Hadoop Hbase外壳提供加载错误,hadoop,hbase,Hadoop,Hbase,dinesh@dinesh-VirtualBox:/usr/local/hbase-1.2.5/bin$启动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,

dinesh@dinesh-VirtualBox:/usr/local/hbase-1.2.5/bin$启动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外壳

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>
在.bashrc文件中,添加到以下行中

export HBASE_HOME=/usr/local/hbase-1.2.5 
export PATH=$PATH:$HBASE_HOME/bin
不知道问题在哪里,任何人都知道这个问题的解决方案,那么请在这里发布。提前谢谢你

First stop hbase using command **./bin/stop-hbase.sh**
If the zookeeper process is still running, kill it. (kill -9 process_id)


You have configured hbase to run in **distributed mode** yet 'localhost' is used in the hbase.rootdir. 
I would expect to see something like hdfs://xx.xx.xx.xx:54310/hbase.

Have you added the conf/regionservers file which lists all your regionservers ? This is mandatory if hbase is run in distributed mode.

In hbase-env.sh add the folLowing line
export HBASE_MANAGES_ZK=true, if you are not managing the zookeeper daemon
在HBASE-SITE.XML中添加以下两个属性

  <property>
      <name>hbase.zookeeper.property.clientPort</name>
      <value>2181</value>
      <description>Property from ZooKeeper's config zoo.cfg.
      The port at which the clients will connect.
      </description>
  </property>
  <property>
        <name>hbase.zookeeper.quorum</name>
        <value>HOSTS_WHERE_ZOOKEEPER_IS_RUNNING</value>
   </property>

The hbase.zookeeper.quorum property is a comma-separated list of hosts on which ZooKeeper servers are running.



HBase logs can be found in the logs subdirectory. Check them out if you still have trouble starting hbase

hbase.zookeeper.property.clientPort
2181
来自ZooKeeper的config zoo.cfg的属性。
客户端将连接的端口。
hbase.zookeeper.quorum
主持运行动物园管理员的地方
hbase.zookeeper.quorum属性是一个以逗号分隔的主机列表,zookeeper服务器运行在这些主机上。
HBase日志可以在logs子目录中找到。如果您在启动hbase时仍有问题,请查看它们
  <property>
      <name>hbase.zookeeper.property.clientPort</name>
      <value>2181</value>
      <description>Property from ZooKeeper's config zoo.cfg.
      The port at which the clients will connect.
      </description>
  </property>
  <property>
        <name>hbase.zookeeper.quorum</name>
        <value>HOSTS_WHERE_ZOOKEEPER_IS_RUNNING</value>
   </property>

The hbase.zookeeper.quorum property is a comma-separated list of hosts on which ZooKeeper servers are running.



HBase logs can be found in the logs subdirectory. Check them out if you still have trouble starting hbase