gpt4 book ai didi

hadoop - HDP 2.2手动安装namenode格式-参数数量错误?

转载 作者:行者123 更新时间:2023-12-02 21:41:59 24 4
gpt4 key购买 nike

我正在从RPM在CentOS 6.5 64位上手动安装Hortonworks Data Platform 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

如果要引用特定的Hadoop配置目录,则“-config $ HADOOP_CONF_DIR”是此处的可选参数。

关于hadoop - HDP 2.2手动安装namenode格式-参数数量错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28072941/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com