[英]Linux Centos6 VM How to format the namenode?
I'm trying to start hadoop on my Centos6 VM linux. 我正在尝试在Centos6 VM Linux上启动hadoop。 these steps have been followed 遵循了这些步骤
I checked etc/init.d and there is nothing like hadoop-hdfs-namenode. 我检查了etc / init.d,没有什么像hadoop-hdfs-namenode一样。 Instead of this command i found this hadoop namenode -format and executed. 我找到了这个hadoop namenode -format并执行了它,而不是这个命令。 And it worked then next step 然后工作就可以了
I executed this command but got unrecognized service error. 我执行了此命令,但收到无法识别的服务错误。
Centos version 6.2-x64 Centos版本6.2-x64
When you first install Hadoop, you must configure it following this https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/ClusterSetup.html 首次安装Hadoop时,必须按照以下https://hadoop.apache.org/docs/r2.4.1/hadoop-project-dist/hadoop-common/ClusterSetup.html进行配置。
Use this command to format a new distributed filesystem and namenode 使用此命令格式化新的分布式文件系统和名称节点
$ $HADOOP_PREFIX/bin/hdfs namenode -format <cluster_name>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.