我正在尝试在ec2示例上安装hadoop-2.6.0。
我下载并安装了hadoop。我还设置了环境变量。当尝试启动hdfs服务时,我得到以下错误。
[ec2-user@ip-10-177-1-69 sbin]$./start-dfs.sh配置不正确:未配置名称节点地址dfs.namenode.servicerpc-address或dfs.namenode.rpc-address。在[]上启动namenodes错误:找不到配置目录:/home/ec2 user/hadoop2.6.0/etc/hadoop错误:找不到配置目录:/home/ec2 user/hadoop2.6.0/etc/hadoop启动辅助namenodes[0.0.0.0]错误:找不到配置目录:/home/ec2 user/hadoop2.6.0/etc/hadoop
1条答案
按热度按时间u0njafvf1#
当您配置.bashrc并将其更改为以下内容时,网站的第二行出现错误。source.bashrc,在您完成更改之后。
export hadoop\u home=$home/hadoop-2.6.0
export hadoop\u conf\u dir=$home/hadoop-2.6.0/etc/hadoop
export hadoop\u mapred\u home=$home/hadoop-2.6.0
export hadoop\u common\u home=$home/hadoop-2.6.0
export hadoop\u hdfs\u home=$home/hadoop-2.6.0
export yarn\u home=$home/hadoop-2.6.0
设置java\u主页
export java\u home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86\u 64/jre
导出路径=$path:$java\u home/bin
将hadoop bin/目录添加到路径
导出路径=$path:$home/hadoop-2.6.0/bin