sodaapi的错误消息中我遗漏了什么?

5uzkadbs  于 2021-05-24  发布在  Spark
关注(0)|答案(0)|浏览(216)

stackoverflow的人们好!
我有个问题还没回答?好吧,我猜不是我想要的答案。我一直在构建这个api来获取一些数据,当我进行调用时,它似乎失败了,我有所需的jar文件,它正在集群中读取。

File "spark_app.py", line 205, in <module>
    sodasDf = spark.read.format('org.apache.dsext.spark.datasource.rest.RestDataSource').options(**prms_Soda).load()
  File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/pyspark.zip/pyspark/sql/readwriter.py", line 172, in load
  File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in __call__
  File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/pyspark.zip/pyspark/sql/utils.py", line 63, in deco
  File "/app/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 328, in get_return_value
py4j.protocol.Py4JJavaError: An error occurred while calling o109.load.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 9.0 failed 4 times, most recent failure: Lost task 0.3 in stage 9.0 (TID 12, cvglpcdh13.td.afg, executor 4): java.lang.NullPointerException
        at org.apache.dsext.spark.datasource.rest.RESTRelation$$anonfun$3.apply(RestRelation.scala:108)
        at org.apache.dsext.spark.datasource.rest.RESTRelation$$anonfun$3.apply(RestRelation.scala:108)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
        at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:186)
        at org.apache.dsext.spark.datasource.rest.RESTRelation.org$apache$dsext$spark$datasource$rest$RESTRelation$$callRest(RestRelation.scala:108)
        at org.apache.dsext.spark.datasource.rest.RESTRelation$$anonfun$2.apply(RestRelation.scala:100)
        at org.apache.dsext.spark.datasource.rest.RESTRelation$$anonfun$2.apply(RestRelation.scala:100)
        at scala.collection.Iterator$$anon$11.next(Iterator.scala:410)
        at scala.collection.Iterator$$anon$11.next(Iterator.scala:410)
        at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage1.processNext(Unknown Source)
        at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
        at org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$11$$anon$1.hasNext(WholeStageCodegenExec.scala:624)
        at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:440)
        at scala.collection.Iterator$class.isEmpty(Iterator.scala:331)
        at scala.collection.AbstractIterator.isEmpty(Iterator.scala:1334)
        at scala.collection.TraversableOnce$class.reduceLeftOption(TraversableOnce.scala:203)
        at scala.collection.AbstractIterator.reduceLeftOption(Iterator.scala:1334)
        at scala.collection.TraversableOnce$class.reduceOption(TraversableOnce.scala:210)
        at scala.collection.AbstractIterator.reduceOption(Iterator.scala:1334)

我不知道我错过了什么。看起来之前有人问过同样的问题,所以(有人能帮我解决这个错误信息吗:),我不确定他们的和我的是相同的还是我遇到了不同的错误,但是任何帮助都将不胜感激

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题