hadoop上的hbase分布式模式

m1m5dgzv  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(411)

我正在尝试在3节点hadoop集群上配置hbase分布式模式。
问题是当我开始做所有的事,
我的光标写完后发出卡嗒声

hadoop@namenode1:/usr/local/hbase/bin$ start-hbase.sh
hadoop@namenode1's password: datanode2: starting zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-hadoop-zookeeper-datanode2.out
datanode1: starting zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-hadoop-zookeeper-datanode1.out

现在还没有进一步的进展。有点卡住了。
我的hbase.site.xml

`<configuration>

  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://namenode1:10001/hbase</value>
  </property>

   <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>

  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>hdfs://namenode1:10001/zookeeper</value>
  </property>

  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>namenode1,datanode1,datanode2</value>
  </property>

  <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
  </property>

</configuration>
`

但是我没有单独安装zookeeper
我的数据节点显示

4387 Jps
3978 DataNode
4332 HQuorumPeer
4126 NodeManager

仅显示名称节点

`hadoop@namenode1:/usr/local/hbase/conf$ jps
4832 ResourceManager
4676 SecondaryNameNode
4443 NameNode
5437 Jps`

请帮助解决这个问题。我卡住了。
现在当我按下光标上的回车键

hadoop@namenode1:/usr/local/hbase/bin$ start-hbase.sh
hadoop@namenode1's password: datanode2: starting zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-hadoop-zookeeper-datanode2.out
datanode1: starting zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-hadoop-zookeeper-datanode1.out

namenode1: Connection closed by UNKNOWN
starting master, logging to /usr/local/hbase/logs/hbase-hadoop-master-namenode1.out
hadoop@namenode1's password: datanode2: starting regionserver, logging to /usr/local/hbase/bin/../logs/hbase-hadoop-regionserver-datanode2.out
datanode1: starting regionserver, logging to /usr/local/hbase/bin/../logs/hbase-hadoop-regionserver-datanode1.out

hadoop@namenode1's password: namenode1: Permission denied, please try again.

hadoop@namenode1's password: namenode1: Permission denied, please try again.

namenode1: Permission denied (publickey,password).

然后namenode显示

hadoop@namenode1:/usr/local/hbase/bin$ jps
4832 ResourceManager
4676 SecondaryNameNode
5559 HMaster
5751 Jps
4443 NameNode

数据节点1显示

hadoop@datanode1:/usr/local/hbase/conf$ jps
4610 Jps
4502 HRegionServer
3978 DataNode
4332 HQuorumPeer
4126 NodeManager

数据节点2显示

hadoop@datanode2:~$ jps
2465 DataNode
2601 NodeManager
2922 HRegionServer
2794 HQuorumPeer
3054 Jps
5fjcxozz

5fjcxozz1#

实际上,首先我需要在分布式模式下安装zookeeper
对于无密码ssh,我没有配置self ssh passwordless
就这么跑了

sudo cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

谢谢@abhinav伙计们

相关问题