Spark应用没有问题,但是提交以后一直报NullPointerException, 请仔细检查jar包,我的spark应用要连接HBase-0.98,但是classpath有HBase-0.94和protobuf-java-2.4.0a.jar的jar包
报错信息如下:
Exception in thread "main" java.lang.NullPointerException
at com.bigdata.spark.streaming.TestOPHBase.main(TestOPHBase.java:122)
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.SparkSubmit$.launch(SparkSubmit.scala:358)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:75)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)