无法在hadoop 3.1.1中启动dfs / yarn

时间:2018-11-16 06:35:56

标签: hdfs yarn dfs hadoop3

我已经下载了hadoop 3.1.1并进行了所有配置更改,一行:

sudo hdfs namenode -format

给出正确的输出。 但是,执行以下行会把我推到边缘:

sbin/start-dfs.sh

输出:

Starting namenodes
/hadoop-3.1.1/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<'
/hadoop-3.1.1/bin/../libexec/hadoop-functions.sh: line 398: `  done < <(for text in "${input[@]}"; do'
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 244: hadoop_need_reexec: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 252: hadoop_verify_user_perm: command not found
/hadoop-3.1.1/bin/hdfs: line 213: hadoop_validate_classname: command not found
/hadoop-3.1.1/bin/hdfs: line 214: hadoop_exit_with_usage: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 263: hadoop_add_client_opts: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 270: hadoop_subcommand_opts: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 273: hadoop_generic_java_subcmd_handler: command not found
Starting datanodes
/hadoop-3.1.1/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<'
/hadoop-3.1.1/bin/../libexec/hadoop-functions.sh: line 398: `  done < <(for text in "${input[@]}"; do'
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 244: hadoop_need_reexec: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 252: hadoop_verify_user_perm: command not found
/hadoop-3.1.1/bin/hdfs: line 213: hadoop_validate_classname: command not found
/hadoop-3.1.1/bin/hdfs: line 214: hadoop_exit_with_usage: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 263: hadoop_add_client_opts: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 270: hadoop_subcommand_opts: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 273: hadoop_generic_java_subcmd_handler: command not found
Starting secondary namenodes
/hadoop-3.1.1/bin/../libexec/hadoop-functions.sh: line 398: syntax error near unexpected token `<'
/hadoop-3.1.1/bin/../libexec/hadoop-functions.sh: line 398: `  done < <(for text in "${input[@]}"; do'
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 70: hadoop_deprecate_envvar: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 87: hadoop_bootstrap: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 104: hadoop_parse_args: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 105: shift: : numeric argument required
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 244: hadoop_need_reexec: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 252: hadoop_verify_user_perm: command not found
/hadoop-3.1.1/bin/hdfs: line 213: hadoop_validate_classname: command not found
/hadoop-3.1.1/bin/hdfs: line 214: hadoop_exit_with_usage: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 263: hadoop_add_client_opts: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 270: hadoop_subcommand_opts: command not found
/hadoop-3.1.1/bin/../libexec/hadoop-config.sh: line 273: hadoop_generic_java_subcmd_handler: command not found
 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

有人可以建议这里出什么问题吗?我已经两次配置了设置,但是仍然出现相同的错误。

谢谢您的时间

0 个答案:

没有答案