我正在从CentOS 6.5 64位上手动安装Hortonworks Data Platform 2.2。在格式化期间,名称节点Insufficent参数错误被“抛出”
这些是根据手册的说明:
Format and Start HDFS
1. Execute these commands at the NameNode host machine:
su - hdfs
/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh
namenode -format
/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh -
-config $HADOOP_CONF_DIR start namenode
但是在格式化命令期间:
[root@virtual ~]# su - hdfs
[hdfs@virtual ~]$ /usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh namenode -format
Usage: hadoop-daemon.sh [--config <conf-dir>] [--hosts hostlistfile] [--script script] (start|stop) <hadoop-command> <args...>
它没有通过参数检查:
# Runs a Hadoop command as a daemon.
#
# Environment Variables
#
# HADOOP_CONF_DIR Alternate conf dir. Default is ${HADOOP_PREFIX}/conf.
# HADOOP_LOG_DIR Where log files are stored. PWD by default.
# HADOOP_MASTER host:path where hadoop code should be rsync'd from
# HADOOP_PID_DIR The pid files are stored. /tmp by default.
# HADOOP_IDENT_STRING A string representing this instance of hadoop. $USER by default
# HADOOP_NICENESS The scheduling priority for daemons. Defaults to 0.
##
export HADOOP_HOME=/usr/hdp/2.2.0.0-2041/hadoop
usage="Usage: hadoop-daemon.sh [--config <conf-dir>] [--hosts hostlistfile] [--script script] (start|stop) <hadoop-command> <args...>"
# if no args specified, show usage
if [ $# -le 1 ]; then
echo $usage
exit 1
fi
我不确定这是脚本还是手册中的错误......
任何提示都会有所帮助
THX
答案 0 :(得分:0)
要格式化NameNode,您可以使用以下命令作为&#39; hdfs&#39;管理员用户:
/usr/bin/hdfs namenode -format
要启动NameNode守护程序,请使用hadoop-daemon.sh脚本:
/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start namenode
&#34; -config $ HADOOP_CONF_DIR&#34;这是一个可选参数,以防您想要引用特定的Hadoop配置目录。