An error is reported when the Flink SQL client submits the job:
2021-10-21 15:23:54,232 INFO org.apache.flink.yarn.YarnClusterDescriptor [] - No path for the flink jar passed. Using the location of class org.apache.flink.yarn.YarnClusterDescriptor to locate the jar
2021-10-21 15:23:54,233 WARN org.apache.flink.yarn.YarnClusterDescriptor [] - Neither the HADOOP_CONF_DIR nor the YARN_CONF_DIR environment variable is set.The Flink YARN Client needs one of these to be set to properly load the Hadoop configuration for accessing YARN.
2021-10-21 15:23:54,291 INFO org.apache.hadoop.yarn.client.ConfiguredRMFailoverProxyProvider [] - Failing over to rm2
2021-10-21 15:23:54,337 INFO org.apache.flink.yarn.YarnClusterDescriptor [] - Found Web Interface n101:36989 of application 'application_1634635118307_0001'.
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.runtime.client.JobSubmissionException: Failed to submit JobGraph.
Failing over to rm2
Only active namenode can be submitted successfully. My active namenode is RM2
Read More:
- NoClassDefFoundError: org/apache/flink/metrics/MetricGroup
- org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session 0354
- How to Fix:java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibat
- tomcat Issues org.apache.catalina.LifecycleException: Failed to start component
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standar
- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(me
- Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign
- “[warning] failed to retrieve plugin descriptor for caused by Maven security agent settings org.apache.maven . plugins:… “
- org.apache.catalina.LifecycleException: Protocol handler start failed
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
- Failed to execute goal in Maven build org.apache.tomcat .maven:
- Failed: execution error, return code 1 from org.apache.hadoop . hive.ql.exec .DDLTask…
- Failed to execute goal org.apache.maven . plugins:maven-surefire-plugin :2.12.4:test
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on pr
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test)
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’