stop-dfs.sh

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: 没有那个文件或目录
如果你在终端中执行`sbin/start-all.sh`命令时出现`zsh: no such file or directory: sbin/start-all.sh`的错误提示,可能是因为你的当前工作目录不在Hadoop安装目录下。 你可以通过以下步骤解决这个问题: 1. 确认Hadoop安装目录 首先,你需要确认Hadoop的安装目录。假设你将Hadoop安装在/usr/local/hadoop目录下,可以使用以下命令进入Hadoop安装目录: ``` cd /usr/local/hadoop ``` 2. 启动Hadoop 进入Hadoop安装目录后,执行以下命令启动Hadoop: ``` sbin/start-all.sh ``` 如果一切顺利,你应该可以看到输出类似于以下内容的信息: ``` starting namenode, logging to /usr/local/hadoop/logs/hadoop-<your-username>-namenode-<your-machine-name>.out localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-<your-username>-datanode-<your-machine-name>.out localhost: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-<your-username>-secondarynamenode-<your-machine-name>.out starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-<your-username>-resourcemanager-<your-machine-name>.out localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-<your-username>-nodemanager-<your-machine-name>.out ``` 这表示Hadoop已经成功启动了。 注意,如果你的Hadoop版本较新,可能需要使用以下命令启动Hadoop: ``` sbin/start-dfs.sh sbin/start-yarn.sh ``` 这会分别启动Hadoop的分布式文件系统和资源管理器。 总之,无论使用哪个命令,一定要确保你的当前工作目录在Hadoop安装目录下。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值