/ etc / hosts中hbase群集的主机命名

时间:2018-08-06 14:55:25

标签: hbase

  

更新的文件:/etc/hosts文件如下所示

127.0.0.1   localhost
127.0.1.1   saichanda-OptiPlex-9020

10.0.3.18       master 
10.0.3.68       slave1
10.0.3.70       slave2

其中,我的系统IP是10.0.3.18,管理员名称是saichanda,我是主节点
那么我又有两个安装了hbase的系统,它们的IP为10.0.3.6810.0.3.70,两个从属系统的用户名分别为dmacsdmacs。从站中的类似/etc/hosts文件也具有本地主机名更改。

当我在主节点中启动hbase时,出现以下错误。.
sudo ./bin/start-hbase.sh starting master, logging to /usr/local/hbase/bin/../logs/hbase-root-master-saichanda-OptiPlex-9020.out
master: ssh: Could not resolve hostname master: Name or service not known
slave1: ssh: Could not resolve hostname slave1: Name or service not known
slave2: ssh: Could not resolve hostname slave2: Name or service not known

  

我的regionservers文件如下所示(在主节点中)

master
slave1
slave2

我可以使用ssh-add以某种方式解决ssh错误,但是当我运行hbase时,出现以下错误:

saichanda@saichanda-OptiPlex-9020:~$ /usr/local/hbase/bin/start-hbase.sh     starting master, logging to /usr/local/hbase/logs/hbase-saichanda-master-saichanda-OptiPlex-9020.out
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /usr/local/hbase/logs/SecurityAuth.audit (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
The authenticity of host 'slave2 (10.0.3.68)' can't be established.
ECDSA key fingerprint is SHA256:UBvk5FkG3KfSMREsDIKbob1l782fozXQHT6+3J6F2Y4.
Are you sure you want to continue connecting (yes/no)? slave1: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
slave1: @       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
slave1: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
slave1: The ECDSA host key for slave1 has changed,
slave1: and the key for the corresponding IP address 10.0.3.70
slave1: is unchanged. This could either mean that
slave1: DNS SPOOFING is happening or the IP address for the host
slave1: and its host key have changed at the same time.
slave1: Offending key for IP in /home/saichanda/.ssh/known_hosts:18
slave1:   remove with:
slave1:   ssh-keygen -f "/home/saichanda/.ssh/known_hosts" -R 10.0.3.70
slave1: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
slave1: @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
slave1: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
slave1: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
slave1: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
slave1: It is also possible that a host key has just been changed.
slave1: The fingerprint for the ECDSA key sent by the remote host is
slave1: SHA256:D9udCvOaKAFGwNbuIpBa+pQErZSDTjLg4m4LJ+s8DzM.
slave1: Please contact your system administrator.
slave1: Add correct host key in /home/saichanda/.ssh/known_hosts to get rid of this message.
slave1: Offending ECDSA key in /home/saichanda/.ssh/known_hosts:22
slave1:   remove with:
slave1:   ssh-keygen -f "/home/saichanda/.ssh/known_hosts" -R slave1
slave1: ECDSA host key for slave1 has changed and you have requested     strict checking.
slave1: Host key verification failed.
master: starting regionserver, logging to /usr/local/hbase/bin/../logs/hbase-saichanda-regionserver-saichanda-OptiPlex-9020.out
master: log4j:ERROR setFile(null,true) call failed.
master: java.io.FileNotFoundException: /usr/local/hbase/bin/..    /logs/SecurityAuth.audit (Permission denied)
master:     at java.io.FileOutputStream.open0(Native Method)
master:     at java.io.FileOutputStream.open(FileOutputStream.java:270)
master:     at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
master:     at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
master:     at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
master:     at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
master:     at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
master:     at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)

slave2: Host key verification failed.

0 个答案:

没有答案