gpt4 book ai didi

启动hadoop时出现hadoop错误

转载 作者:可可西里 更新时间:2023-11-01 16:16:18 29 4
gpt4 key购买 nike

您好,我在使用 start-all.sh 运行 hadoop 时无法解决我的问题

rochdi@127:~$ start-all.sh

/usr/local/hadoop/bin/hadoop-daemon.sh: line 62: [: localhost: integer expression expected

starting namenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-rochdi-namenode-127.0.0.1

localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 62: [: localhost: integer expression expected

localhost: starting datanode, logging to /usr/local/hadoop/libexec/../logs/hadoop-rochdi-datanode-127.0.0.1

localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 62: [: localhost: integer expression expected

localhost: starting secondarynamenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-rochdi-secondarynamenode-127.0.0.1

/usr/local/hadoop/bin/hadoop-daemon.sh: line 62: [: localhost: integer expression expected

starting jobtracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-rochdi-jobtracker-127.0.0.1

localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 62: [: localhost: integer expression expected

localhost: starting tasktracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-rochdi-tasktracker-127.0.0.1

localhost: Erreur : impossible de trouver ou charger la classe principale localhost

路径:

rochdi@127:~$ echo "$PATH"
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/hadoop/bin:/usr/local/hadoop/lib

在出现错误之前,我将主机名文件更改为:

127.0.0.1 localhost
127.0.1.1 ubuntu.local ubuntu

我将我的 bashrc 文件配置为

export HADOOP_PREFIX=/usr/local/hadoop

export PATH=$PATH:$HADOOP_PREFIX/bin

export JAVA_HOME=/usr/lib/jvm/java-7-oracle

和jps命令

  rochdi@127:~$ jps
3427 Jps

请帮帮我

最佳答案

我解决了这个问题,我只是更改了我的主机名,但是所有节点都启动了,但是当我停止它们时,我收到了这条消息:

rochdi@acer:~$ jps
4605 NameNode
5084 SecondaryNameNode
5171 JobTracker
5460 Jps
5410 TaskTracker
rochdi@acer:~$ stop-all.sh
stopping jobtracker
localhost: no tasktracker to stop
stopping namenode
localhost: no datanode to stop
localhost: stopping secondarynamenode

关于启动hadoop时出现hadoop错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20407914/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com