ubuntu64位hadoop2.2.0安装中的问题

e0uiprwp  于 2021-06-02  发布在  Hadoop
关注(0)|答案(3)|浏览(321)

在安装hadoop2.2.0时,我遇到了这个错误。请帮我解决这个问题。

Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic x86_64)

文档:https://help.ubuntu.com/

Last login: Mon May 19 12:02:59 2014 from localhost
vandana@Vandana:~$ start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
14/05/20 17:49:37 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: mkdir: cannot create directory `/usr/local/hadoop/logs': Permission denied
localhost: chown: cannot access `/usr/local/hadoop/logs': No such file or directory
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-vandana-namenode-Vandana.out
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 151: /usr/local/hadoop/logs/hadoop-vandana-namenode-Vandana.out: No such file or directory
localhost: head: cannot open `/usr/local/hadoop/logs/hadoop-vandana-namenode-Vandana.out' for reading: No such file or directory
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 166: /usr/local/hadoop/logs/hadoop-vandana-namenode-Vandana.out: No such file or directory
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 167: /usr/local/hadoop/logs/hadoop-vandana-namenode-Vandana.out: No such file or directory
localhost: mkdir: cannot create directory `/usr/local/hadoop/logs': Permission denied
localhost: chown: cannot access `/usr/local/hadoop/logs': No such file or directory
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-vandana-datanode-Vandana.out
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 151: /usr/local/hadoop/logs/hadoop-vandana-datanode-Vandana.out: No such file or directory
localhost: head: cannot open `/usr/local/hadoop/logs/hadoop-vandana-datanode-Vandana.out' for reading: No such file or directory
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 166: /usr/local/hadoop/logs/hadoop-vandana-datanode-Vandana.out: No such file or directory
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 167: /usr/local/hadoop/logs/hadoop-vandana-datanode-Vandana.out: No such file or directory
Starting secondary namenodes [0.0.0.0]
0.0.0.0: mkdir: cannot create directory `/usr/local/hadoop/logs': Permission denied
0.0.0.0: chown: cannot access `/usr/local/hadoop/logs': No such file or directory
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-vandana-secondarynamenode-Vandana.out
0.0.0.0: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 151: /usr/local/hadoop/logs/hadoop-vandana-secondarynamenode-Vandana.out: No such file or directory
0.0.0.0: head: cannot open `/usr/local/hadoop/logs/hadoop-vandana-secondarynamenode-Vandana.out' for reading: No such file or directory
0.0.0.0: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 166: /usr/local/hadoop/logs/hadoop-vandana-secondarynamenode-Vandana.out: No such file or directory
0.0.0.0: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 167: /usr/local/hadoop/logs/hadoop-vandana-secondarynamenode-Vandana.out: No such file or directory
14/05/20 17:50:02 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
mkdir: cannot create directory `/usr/local/hadoop/logs': Permission denied
chown: cannot access `/usr/local/hadoop/logs': No such file or directory
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-vandana-resourcemanager-Vandana.out
/usr/local/hadoop/sbin/yarn-daemon.sh: line 124: /usr/local/hadoop/logs/yarn-vandana-resourcemanager-Vandana.out: No such file or directory
head: cannot open `/usr/local/hadoop/logs/yarn-vandana-resourcemanager-Vandana.out' for reading: No such file or directory
/usr/local/hadoop/sbin/yarn-daemon.sh: line 129: /usr/local/hadoop/logs/yarn-vandana-resourcemanager-Vandana.out: No such file or directory
/usr/local/hadoop/sbin/yarn-daemon.sh: line 130: /usr/local/hadoop/logs/yarn-vandana-resourcemanager-Vandana.out: No such file or directory
localhost: mkdir: cannot create directory `/usr/local/hadoop/logs': Permission denied
localhost: chown: cannot access `/usr/local/hadoop/logs': No such file or directory
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-vandana-nodemanager-Vandana.out
localhost: /usr/local/hadoop/sbin/yarn-daemon.sh: line 124:                            /usr/local/hadoop/logs/yarn-vandana-nodemanager-Vandana.out: No such file or directory
localhost: head: cannot open `/usr/local/hadoop/logs/yarn-vandana-nodemanager-Vandana.out' for reading: No such file or directory
localhost: /usr/local/hadoop/sbin/yarn-daemon.sh: line 129: /usr/local/hadoop/logs/yarn-vandana-nodemanager-Vandana.out: No such file or directory
localhost: /usr/local/hadoop/sbin/yarn-daemon.sh: line 130: /usr/local/hadoop/logs/yarn-vandana-nodemanager-Vandana.out: No such file or directory
aydmsdu9

aydmsdu91#

start-dfs.sh和start-mapred.sh,而不是start-all.sh,并且在您的配置文件hdfs site.xml、core site.xml、mapred-site.xml中似乎有错误请检查此步骤tallation:hadoop installation

rjzwgtxy

rjzwgtxy2#

首先你没有权限创建日志文件。正确配置hdfs site.xml、core site.xml、mapred-site.xml,并确保您有权格式化namenode

xpcnnkqh

xpcnnkqh3#

我认为这可能是因为路径中没有hadoop原生jar文件。要添加它,您应该运行:

export PATH=$PATH;$HADOOP_INSTALL

相关问题