stop-dfs.sh

本文记录了一次在CentOS上启动Hadoop集群遇到的问题及详细错误日志。启动过程中出现了一系列与当前工作目录获取失败、无法访问父目录及SSH主机名解析错误相关的问题。通过对错误日志的分析,本文尝试找出可能的原因并给出解决思路。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
[wangshumin@centoshostnameKL1 hadoop]$ stop-dfs.sh
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Stopping namenodes on [Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:1166)]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
initialization: ssh: Could not resolve hostname initialization: Name or service not known
of: ssh: Could not resolve hostname of: Name or service not known
during: ssh: Could not resolve hostname during: Name or service not known
Error: ssh: Could not resolve hostname Error: Name or service not known
Could: ssh: Could not resolve hostname Could: Name or service not known
java.lang.Error:: ssh: Could not resolve hostname java.lang.Error:: Name or service not known
init:: ssh: Could not resolve hostname init:: Name or service not known
determine: ssh: Could not resolve hostname determine: Name or service not known
VM: ssh: Could not resolve hostname VM: Name or service not known
not: ssh: Could not resolve hostname not: Name or service not known
Method): ssh: Could not resolve hostname Method): Name or service not known
working: ssh: Could not resolve hostname working: Name or service not known
current: ssh: Could not resolve hostname current: Name or service not known
java.lang.System.initializeSystemClass(System.java:1166): ssh: Could not resolve hostname java.lang.System.initializeSystemClass(System.java:1166): Name or service not known
java.lang.System.initProperties(Native: ssh: Could not resolve hostname java.lang.System.initProperties(Native: Name or service not known
at: ssh: Could not resolve hostname at: No address associated with hostname
at: ssh: Could not resolve hostname at: No address associated with hostname
Properties: ssh: Could not resolve hostname Properties: No address associated with hostname
directory.: ssh: Could not resolve hostname directory.: No address associated with hostname
occurred: ssh: Could not resolve hostname occurred: Name or service not known
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
centoshostnameKL2: no datanode to stop
centoshostnameKL3: no datanode to stop
centoshostnameKL1: no datanode to stop
Stopping secondary namenodes [Error occurred during initialization of VM
java.lang.Error: Properties init: Could not determine current working directory.
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:1166)]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
during: ssh: Could not resolve hostname during: Name or service not known
initialization: ssh: Could not resolve hostname initialization: Name or service not known
occurred: ssh: Could not resolve hostname occurred: Name or service not known
determine: ssh: Could not resolve hostname determine: Name or service not known
current: ssh: Could not resolve hostname current: Name or service not known
not: ssh: Could not resolve hostname not: Name or service not known
init:: ssh: Could not resolve hostname init:: Name or service not known
java.lang.System.initProperties(Native: ssh: Could not resolve hostname java.lang.System.initProperties(Native: Name or service not known
java.lang.System.initializeSystemClass(System.java:1166): ssh: Could not resolve hostname java.lang.System.initializeSystemClass(System.java:1166): Name or service not known
Error: ssh: Could not resolve hostname Error: Name or service not known
of: ssh: Could not resolve hostname of: Name or service not known
at: ssh: Could not resolve hostname at: No address associated with hostname
Could: ssh: Could not resolve hostname Could: Name or service not known
at: ssh: Could not resolve hostname at: No address associated with hostname
directory.: ssh: Could not resolve hostname directory.: No address associated with hostname
working: ssh: Could not resolve hostname working: Name or service not known
java.lang.Error:: ssh: Could not resolve hostname java.lang.Error:: Name or service not known
Properties: ssh: Could not resolve hostname Properties: No address associated with hostname
VM: ssh: Could not resolve hostname VM: Name or service not known
Method): ssh: Could not resolve hostname Method): Name or service not known
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
[wangshumin@centoshostnameKL1 hadoop]$ service  sshd  status
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
/etc/init.d/sshd: line 33: /etc/sysconfig/sshd: 权限不够
openssh-daemon (pid  1684) 正在运行...
[wangshumin@centoshostnameKL1 hadoop]$ sudo  service  sshd  status
[sudo] password for wangshumin: 
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值