美文网首页
Spark Trouble Shooting - Driver

Spark Trouble Shooting - Driver

作者: 西二旗老司机 | 来源:发表于2018-01-29 17:50 被阅读0次

    今天遇到一个诡异的错误,Go一下记录一下。

    ERROR


    Exception in thread "Driver" java.lang.NullPointerException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:627)
    

    Solution


    Your code should be in an object, not class!

    相关文章

      网友评论

          本文标题:Spark Trouble Shooting - Driver

          本文链接:https://www.haomeiwen.com/subject/cmhfzxtx.html