问题描述
当我配置完启动时,出现:JIAS-MacBook-Pro:hadoop-0.20.2jia$bin/start-all.shstartingnamenode,loggingto/Users/jia/Documents/hadoop-0.20.2/bin/../logs/hadoop-jia-namenode-JIAS-MacBook-Pro.local.outcat:Documents/hadoop-0.20.2/conf/slaves:Nosuchfileordirectorycat:Documents/hadoop-0.20.2/conf/masters:Nosuchfileordirectorystartingjobtracker,loggingto/Users/jia/Documents/hadoop-0.20.2/bin/../logs/hadoop-jia-jobtracker-JIAS-MacBook-Pro.local.outcat:Documents/hadoop-0.20.2/conf/slaves:Nosuchfileordirectory这样的错误。而且在浏览器打开不了下面两个页面。怎么回事呢?http://localhost:50030(MapReduce的Web页面)http://localhost:50070(HDfS的web页面)
解决方案
解决方案二:
在$hadoop_home/conf文件夹里新增slaves和master两个文件,里面分别填写你的datanode和namenode节点的host或者ip
时间: 2024-11-24 20:14:11