RHEL6 | 角色 | jdk-8u45 |
hadoop-2.8.1.tar.gz | ssh | |
xx.xx.xx.xx ip地址 | NN | hadoop1 |
xx.xx.xx.xx ip地址 | DN | hadoop2 |
xx.xx.xx.xx ip地址 | DN | hadoop3 |
xx.xx.xx.xx ip地址 | DN | hadoop4 |
xx.xx.xx.xx ip地址 | DN | hadoop5 |
本次涉及伪分布式部署只是要主机hadoop1
HDFS启动
[hadoop@hadoop01 hadoop]$ ./sbin/start-dfs.sh
Starting namenodes on [hadoop01]
The authenticity of host 'hadoop01 (172.16.18.133)' can't be established.
RSA key fingerprint is 8f:e7:6c:ca:6e:40:78:b8:df:6a:b4:ca:52:c7:01:4b.
Are you sure you want to continue connecting (yes/no)? yes
hadoop01: Warning: Permanently added 'hadoop01' (RSA) to the list of known hosts.
hadoop01: chown: changing ownership of `/opt/software/hadoop-2.8.1/logs': Operation not permitted
hadoop01: starting namenode, logging to /opt/software/hadoop-2.8.1/logs/hadoop-hadoop-namenode-hadoop01.out
hadoop01: /opt/software/hadoop-2.8.1/sbin/hadoop-daemon.sh: line 159:
/opt/software/hadoop-2.8.1/logs/hadoop-hadoop-namenode-hadoop01.out: Permission denied
启动如果有交互输入密码,不输入报错权限限制,这是因为我们没有配置互信,
伪分布式即便在同一台机器上面我们也需要配置ssh登陆互信。
非root用户公钥文件权限必须是600权限(root除外)
在hadoop用户配置ssh免密码登陆
[hadoop@hadoop01 .ssh]$ cat id_rsa.pub > authorized_keys [hadoop@hadoop01 hadoop]$ ssh hadoop01 date [hadoop@hadoop01 hadoop]$ ./sbin/start-dfs.sh |
分两种情况:1、进程不存在,且process information unavailable
2、进程存在 报process information unavailable
对于第一种情况:
[hadoop@hadoop01 sbin]$ jps [hadoop@hadoop01 hsperfdata_hadoop]$ ls /tmp/hsperfdata_hadoop 里面记录jps显示的进程号,如果此时jps看到报错[hadoop@hadoop01 tmp]$ jps 查询异常进程是否存在 [hadoop@hadoop01 tmp]$ ps -ef |grep 3330 |
对于进程不存在了,ok去/tmp/hsperfdata_xxx删除文件, 直接重新启动进程。。
jps查询的是当前用户的 hsperfdata_当前用户/文件 [hadoop@hadoop01 hadoop]$ jps -----切换hadoop用户查看进程 这个情况是查看的用户不对,hadoop查看jps不是运行用户查看,这个情况是不需要进行任何处理,服务运行正常 |
总结:对应process information unavailable报错,处理:
1.查看进程是否存在 (进程不存在,删/tmp/hsperfdata_xxx,重新启动进程)
2.如果进程存在,查看存在的进程运行用户,如果不是当前用户 切换用户后重新运行jps
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。