spark-submit 提交有问题, 一直在accept状态

176 阅读2分钟

问题描述

spark-submit提交到yarn上面报错如下,显示连接不到8030,但是已经设置了yarn-site的参数

5574 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
6575 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
7575 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
8576 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
9577 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
10578 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
11579 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
12580 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
13581 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
14582 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15587 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16587 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
17588 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
18589 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19590 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
20591 [main] INFO  org.apache.hadoop.ipc.Client  - Retrying connect to server: 0.0.0.0/0.0.0.0:8030. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)

解决方案

  1. 查看spark-env.sh 是否被正常引用
HADOOP_CONF_DIR=${hadoop_path}/etc/hadoop
  1. 查看yarn-site 是否进行相关配置
<property>
                <name>yarn.resourcemanager.address</name>
                <value>master:8032</value>
         </property>

<property>
                <name>yarn.resourcemanager.scheduler.address</name>
                <value>master:8030</value>
         </property>
<property>
                <name>yarn.resourcemanager.resource-tracker.address</name>
                <value>master:8031</value>
         </property>