java.io.IOException

YarnSparkContextClient init failed

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via GitHub by anayyar82
    ,
  • via GitHub by anayyar82
    ,
  • Stack trace

    • java.io.IOException: YarnSparkContextClient init failed at org.apache.spark.sql.client.JavaSparkSQLClient.liftedTree1$1(JavaSparkSQLClient.scala:28) at org.apache.spark.sql.client.JavaSparkSQLClient.sparkContextClient$lzycompute(JavaSparkSQLClient.scala:19) at org.apache.spark.sql.client.JavaSparkSQLClient.sparkContextClient(JavaSparkSQLClient.scala:19) at org.apache.spark.sql.client.JavaSparkSQLClient.submitSql(JavaSparkSQLClient.scala:44) at org.apache.spark.sql.client.JavaSparkSQLClient$.main(JavaSparkSQLClient.scala:194) at org.apache.spark.sql.client.JavaSparkSQLClient.main(JavaSparkSQLClient.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.apache.spark.sql.client.JavaSparkSQLClient.liftedTree1$1(JavaSparkSQLClient.scala:23) ... 14 more Caused by: java.lang.NoSuchMethodError: org.apache.spark.rpc.RpcEnv$.create$default$6()Z at org.apache.spark.sql.yarn.YarnSQLClient.start(YarnSQLClient.scala:134) at org.apache.spark.sql.yarn.YarnSQLClient.<init>(YarnSQLClient.scala:127)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.