HDP 2.2 手动安装名称节点格式 - 参数数量错误



我正在从RPM手动在CentOS 6.5 64位上安装Hortonworks数据平台2.2。在格式化名称节点期间 "抛出"参数不足错误

这些是根据手册的说明:

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

我不确定这是脚本中的错误还是手册中的错误......

任何提示都会有所帮助

感谢

要格式化 NameNode,您可以使用以下命令以"hdfs"管理员用户身份运行:

/usr/bin/hdfs namenode -format

要启动 NameNode 守护程序,请使用 hadoop-daemon.sh 脚本:

/usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start namenode

"-config $HADOOP_CONF_DIR"是这里的可选参数,以防您想要引用特定的Hadoop配置目录。

相关内容

  • 没有找到相关文章

最新更新