Home > other >  The spark of new sincerely ask, to burst! java.lang.NullPointerException
The spark of new sincerely ask, to burst! java.lang.NullPointerException

Time:09-24

Is, I'm calling the graphX pregel interface, made a sparql query system, and then when the data is small is no problem, but when the data is bigger, there will be a problem:
Under Caused by: Java. Lang. NullPointerException
The at SparqlSpark. Main $. SparqlSpark $Main $$vertexProgram $1 (234). The Main scala:
The at SparqlSpark. Main $$anonfun $14. Apply (241). The Main scala:
The at SparqlSpark. Main $$anonfun $14. Apply (241). The Main scala:
The at org. Apache. Spark. The graphx. Pregel $$anonfun $1. Apply (Pregel. Scala: 122)
The at org. Apache. Spark. The graphx. Pregel $$anonfun $1. Apply (Pregel. Scala: 122)
At org. Apache. Spark. The graphx. Impl. VertexPartitionBaseOps. The map (62). VertexPartitionBaseOps scala:
The at org. Apache. Spark. The graphx. Impl. GraphImpl $$anonfun $5. The apply (GraphImpl. Scala: 132)
The at org. Apache. Spark. The graphx. Impl. GraphImpl $$anonfun $5. The apply (GraphImpl. Scala: 132)
At the scala. Collection. The Iterator $$$11. -anon next (328) the Iterator. Scala:
The at org. Apache. Spark. Storage. MemoryStore. UnrollSafely (MemoryStore. Scala: 285)
The at org. Apache. Spark. CacheManager. PutInBlockManager (CacheManager. Scala: 171)
The at org. Apache. Spark. CacheManager. GetOrCompute (CacheManager. Scala: 78)
The at org. Apache. Spark. RDD. RDD. Iterator (RDD. Scala: 268)
At org.apache.spark.rdd.ZippedPartitionsRDD2.com pute (ZippedPartitionsRDD. Scala: 88)
At org.apache.spark.rdd.RDD.com puteOrReadCheckpoint (RDD. Scala: 306)
The at org. Apache. Spark. RDD. RDD. Iterator (RDD. Scala: 270)
At org.apache.spark.rdd.MapPartitionsRDD.com pute (MapPartitionsRDD. Scala: 38)
At org.apache.spark.rdd.RDD.com puteOrReadCheckpoint (RDD. Scala: 306)
The at org. Apache. Spark. RDD. RDD. Iterator (RDD. Scala: 270)
The at org. Apache. Spark. The scheduler. ShuffleMapTask. RunTask (ShuffleMapTask. Scala: 73)
The at org. Apache. Spark. The scheduler. ShuffleMapTask. RunTask (ShuffleMapTask. Scala: 41)
At org. Apache. Spark. The scheduler. Task. Run (89) Task. Scala:
The at org. Apache. Spark. Executor. $TaskRunner executor. Run (executor. Scala: 214)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
The at Java. Lang. Thread. The run (Thread. Java: 745)
I found that when the data gets bigger when debugging, the attribute of the vertices in the graph is empty,
Ask you have a similar situation, what conditions will appear this kind of mistake, distributed Java. In lang. How to settle a NullPointerException,
Thank you,

CodePudding user response:

You don't '

CodePudding user response:

Can only across the
  • Related