命令是 bin/start-all.sh
hadoop@user-HP-dx2480-MT-NA125PA:/usr/local/hadoop/hadoop$ bin/start-all.sh
错误是
mv: cannot move `/usr/local/hadoop/hadoop/bin/../logs/hadoop-hadoop-namenode-user-HP-dx2480-MT-NA125PA.out.4' to `/usr/local/hadoop/hadoop/bin/../logs/hadoop-hadoop-namenode-user-HP-dx2480-MT-NA125PA.out.5': Permission denied
mv: try to overwrite `/usr/local/hadoop/hadoop/bin/../logs/hadoop-hadoop-namenode-user-HP-dx2480-MT-NA125PA.out.4', overriding mode 0644 (rw-r--r--)?
mv: try to overwrite `/usr/local/hadoop/hadoop/bin/../logs/hadoop-hadoop-namenode-user-HP-dx2480-MT-NA125PA.out.3', overriding mode 0644 (rw-r--r--)?
mv: try to overwrite `/usr/local/hadoop/hadoop/bin/../logs/hadoop-hadoop-namenode-user-HP-dx2480-MT-NA125PA.out.2', overriding mode 0644 (rw-r--r--)?
有什么解决办法吗??
这似乎是一个权限问题。尝试使用
sudo
命令执行 start-all。创建用户
添加以下行以将 hduser 添加到 sudoers 中,
vi /etc/sudoers
更改 hadoop 所有者
where
hduser
→ 用户名,hadoop
→ 组名