gpt4 book ai didi

hadoop - HADOOP上的HBASE分布式模式卡住了

转载 作者:行者123 更新时间:2023-12-02 20:34:10 25 4
gpt4 key购买 nike

我正在尝试在3节点hadoop群集上配置HBASE分布式模式。

问题是当我启动start-all-sh时,

写完后我的光标卡住了

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

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

和datanode2显示
hadoop@datanode2:~$ jps
2465 DataNode
2601 NodeManager
2922 HRegionServer
2794 HQuorumPeer
3054 Jps

最佳答案

实际上,首先我需要以分布式模式安装Zookeeper,

对于更少的密码ssh我没有配置self ssh无密码

这么跑

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

谢谢@Abhinav伙计们

关于hadoop - HADOOP上的HBASE分布式模式卡住了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51906948/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com