Error: Cannot find configuration directory: /etc/hadoop
来源:互联网 发布:基于tp框架的cms 编辑:程序博客网 时间:2024/06/05 10:53
在安装Hadoop2.7.2部署伪分布式集群时,使用命令 start-all.sh 或者 start-dfs.sh 启动时,出现 Error: Cannot find configuration directory: /etc/hadoop 错误。
解决方法:在系统为ubuntu12.04时,修改系统文件/etc/profile,添加内容:
export HADOOP_HOME=/usr/local/hadoop/hadoop-2.7.2
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOOME/sbin:$HADOOP_HOME/lib
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
重启ubuntu或者其它方法使配置生效,即可。
另一种外解决方法:点击打开链接
1 0
- Error: Cannot find configuration directory: /etc/hadoop
- hadoop-2.7.1:Error: Cannot find configuration directory: /etc/hadoop
- hadoop-2.7.1:Error: Cannot find configuration directory: /etc/hadoop
- hadoop-2.7.1:Error: Cannot find configuration directory: /etc/hadoop
- Hadoop 配置过程中的错误 Error: Cannot find configuration directory: /etc/hadoop
- start-dfs.sh启动出现Error:cannot find configuration directory:/etc/hadoop
- ERROR: Cannot find configuration directory "/xxxx/xxxx/xxxxx/hadoop-x.x.x/conf"
- start-all.sh出现Error:Cannot find configuration directory问题
- Hadoop Cannot create directory
- java.io.IOException: Cannot run program "/etc/hadoop/conf.cloudera.yarn/topology.py" (in directory "
- QFontDatabase: Cannot find font directory
- unzip cannot find zipfile directory
- error: Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory error: faile
- error: cannot find -ldemo_shared
- [Error] GL/gl.h: No such file or directory & /usr/bin/ld: cannot find -lGL [Solved]
- 【Ubuntu】cannot find -lixxx && fatal error: xxx.h: No such file or directory 解决方法参考
- QFontDatabase: Cannot find font directory问题解决方案
- go:cannot find GOROOT directory c:\go
- android创建多线程的方法
- LeetCode Group Anagrams
- java中的内部类总结
- Linux下的MYSQL主主复制
- UI AutoLayer 自动布局-->约束
- Error: Cannot find configuration directory: /etc/hadoop
- MySQL 性能优化
- 初学hibernate笔记
- PAT-1048 数字加密20
- ORA-02095: specified initialization parameter cannot be modified
- Android Studio 使用遇到的各种问题
- 【POJ 3630】Phone List 中文题意&题解&代码(C++)
- Oracle之查看建表语句
- Android shape使用