当然,我已经在我的Ubuntu系统中安装了Hadoop。我开始了。以下是详细信息:
krish @ krish-VirtualBox:〜$ start-dfs.sh 14/10/20 13:16:16 WARN util.NativeCodeLoader:无法为您的平台加载native-hadoop库...使用适用的builtin-java类在[localhost]
上启动名称节点localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-krish-namenode-krish-VirtualBox.out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-krish-datanode-krish-VirtualBox.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-krish-secondarynamenode-krish-VirtualBox.out
14/10/20 13:16:35 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
krish@krish-VirtualBox:~$ start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-krish-resourcemanager-krish-VirtualBox.out
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-krish-nodemanager-krish-VirtualBox.out
krish@krish-VirtualBox:~$ jps
3065 NodeManager
2800 SecondaryNameNode
2941 ResourceManager
3307 Jps
2497 NameNode
krish@krish-VirtualBox:~$
我只是想知道所有事情是否都很完美。我没有在清单中看到Datanode。
答案 0 :(得分:0)
停止群集。
如果您在core-site.xml中明确定义了tmp目录位置,则删除这些目录下的所有文件。
如果你在hdfs-site.xml中有专门定义的数据节点和namenode目录,那么删除这些目录下的所有文件。
如果你还没有在core-site或hdfs-site中定义任何内容,那么请删除/ tmp / hadoop- * nameofyourhadoop用户下的所有文件
格式化namenode
它应该有用