启动hadoop服务报错

集群部署完hadoop和spark后,启动hadoop集群报如下错误:

上一次登录:五 9月 15 15:32:56 CST 2023pts/0 上
[root@manager conf]# which start-all.sh
/home/bigdata/hadoop/sbin/start-all.sh
[root@manager conf]# sh /home/bigdata/hadoop/sbin/start-all.sh
/home/bigdata/hadoop/libexec/hadoop-functions.sh:行398: 未预期的符号 `<' 附近有语法错误
/home/bigdata/hadoop/libexec/hadoop-functions.sh:行398: `  done < <(for text in "${input[@]}"; do'
/home/bigdata/hadoop/libexec/hadoop-config.sh:行70: hadoop_deprecate_envvar: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行87: hadoop_bootstrap: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行104: hadoop_parse_args: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh: 第 105 行:shift: : 需要数字参数
/home/bigdata/hadoop/libexec/hadoop-config.sh:行110: hadoop_find_confdir: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行111: hadoop_exec_hadoopenv: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行112: hadoop_import_shellprofiles: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行113: hadoop_exec_userfuncs: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行119: hadoop_exec_user_hadoopenv: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行120: hadoop_verify_confdir: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行122: hadoop_deprecate_envvar: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行123: hadoop_deprecate_envvar: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行124: hadoop_deprecate_envvar: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行129: hadoop_os_tricks: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行131: hadoop_java_setup: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行133: hadoop_basic_init: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行140: hadoop_shellprofiles_init: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行143: hadoop_add_javalibpath: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行144: hadoop_add_javalibpath: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行146: hadoop_shellprofiles_nativelib: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行152: hadoop_add_common_to_classpath: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行153: hadoop_shellprofiles_classpath: 未找到命令
/home/bigdata/hadoop/libexec/hadoop-config.sh:行157: hadoop_exec_hadooprc: 未找到命令

解决方案

换其他的执行方式,成功启动脚本。

[root@manager conf]# bash /home/bigdata/hadoop/sbin/start-all.sh          
Starting namenodes on [manager node1]
上一次登录:五 9月 15 15:33:05 CST 2023pts/0 上
Starting datanodes
上一次登录:五 9月 15 15:37:21 CST 2023pts/0 上
Starting journal nodes [manager node1]
上一次登录:五 9月 15 15:37:24 CST 2023pts/0 上
Starting ZK Failover Controllers on NN hosts [manager node1]
上一次登录:五 9月 15 15:37:28 CST 2023pts/0 上
Starting resourcemanagers on [ manager node1]
上一次登录:五 9月 15 15:37:31 CST 2023pts/0 上
Starting nodemanagers
上一次登录:五 9月 15 15:37:37 CST 2023pts/0 上
[root@manager conf]# 

你可能感兴趣的:(eclipse,java,ide)