circleybx
circleybx
2020-10-15 17:47

Linux 搭建Hadoop集群执行命令start-dfs.sh报错

  • apache
  • linux
  • mysql

[root@node01 hadoop-2.7.5]# sbin/start-dfs.sh
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
Starting namenodes on [node01]
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: Error: JAVA_HOME is not set and could not be found.
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: ssh: Could not resolve hostname \357\273\277node01: Name or service not known
node03: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node03: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node03: Error: JAVA_HOME is not set and could not be found.
node02: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node02: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node02: Error: JAVA_HOME is not set and could not be found.
Starting secondary namenodes [node01]
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: Error: JAVA_HOME is not set and could not be found.
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
[root@node01 hadoop-2.7.5]# sbin/start-dfs.sh
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
Starting namenodes on [node01]
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: Error: JAVA_HOME is not set and could not be found.
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node02: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node02: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node02: Error: JAVA_HOME is not set and could not be found.
node03: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node03: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node03: Error: JAVA_HOME is not set and could not be found.
node01: ssh: Could not resolve hostname \357\273\277node01: Name or service not known
Starting secondary namenodes [node01]
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
node01: /export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
node01: Error: JAVA_HOME is not set and could not be found.
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1: syntax error near unexpected token ('
/export/servers/hadoop-2.7.5/etc/hadoop/hadoop-env.sh: line 1:
# Licensed to the Apache Software Foundation (ASF) under one'
You have new mail in /var/spool/mail/root

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答