MangoCool

Error: Cannot find configuration directory: /etc/hadoop

2016-04-18 16:30:54   作者:MangoCool   来源:MangoCool

配置好hadoop-2.7.0后,执行启动 ./start-all.sh,报错:

[hadoop@h222 hadoop]$ ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Error: Cannot find configuration directory: /etc/hadoop
starting yarn daemons
Error: Cannot find configuration directory: /etc/hadoop
这是因为使用了hadoop-env.sh默认的关于hadoop配置文件所在目录的置,这里需要根据你自己的安装路径重新设置。

修改hadoop-env.sh:

export HADOOP_CONF_DIR=/home/hadoop-2.7.0/etc/hadoop/
最后别忘了:

source  hadoop-env.sh

标签: hadoop

分享:

上一篇Error: FUNCTION 'NUCLEUS_ASCII' already exists. (state=X0Y68,code=30000)

下一篇Centos6系统安装gpperfmon-cc-web监控

关于我

崇尚极简,热爱技术,喜欢唱歌,热衷旅行,爱好电子产品的一介码农。

座右铭

当你的才华还撑不起你的野心的时候,你就应该静下心来学习,永不止步!

人生之旅历途甚长,所争决不在一年半月,万不可因此着急失望,招精神之萎葸。

Copyright 2015- 芒果酷(mangocool.com) All rights reserved. 湘ICP备14019394号

免责声明:本网站部分文章转载其他媒体,意在为公众提供免费服务。如有信息侵犯了您的权益,可与本网站联系,本网站将尽快予以撤除。