运行时异常
sudo sbin/start-dfs.sh
/usr/local/Cellar/hadoop/3.1.0/libexec/bin /../ libexec / hadoop-functions.sh: 第398行:意外令牌
<' /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-functions.sh: line 398:
附近的语法错误完成<<(对于“ $ {input [@]}”中的文本;请执行' /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第70行:hadoop_deprecate_envvar:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第87行:hadoop_bootstrap:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第104行:hadoop_parse_args:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第105行:shift ::需要数字参数 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第244行:hadoop_need_reexec:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第252行:hadoop_verify_user_perm:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/hdfs:第213行: hadoop_validate_classname:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/hdfs:第214行: hadoop_exit_with_usage:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第263行:hadoop_add_client_opts:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第270行:hadoop_subcommand_opts:找不到命令 /usr/local/Cellar/hadoop/3.1.0/libexec/bin/../libexec/hadoop-config.sh: 第273行:hadoop_generic_java_subcmd_handler:找不到命令 警告:HADOOP_SECURE_DN_USER已替换为 HDFS_DATANODE_SECURE_USER。使用HADOOP_SECURE_DN_USER的值