Spark Exceptions

Spark-Exceptions

  1. java.lang.NoClassDefFoundError: org/apache/spark/Logging spark_jar
    org.apache.spark.scheduler.cluster.CoarseGrainedClusterMessages ocal class incompatible: stream classdesc serialVersionUID . 版本沖突

  2. 一般問題:
    https://databricks.gitbooks.io/databricks-spark-knowledge-base/content/troubleshooting/connectivity_issues.html

  3. empty partition:
    If you didn't expect to have empty partitions, it may be worth investigating why you have them. Empty partitions can happen either due to a filtering step which removed all the elements from some partitions, or due to a bad hash function. If the hashCode() for your RDD's elements doesn't distribute the elements well, it's possible to end up with an unbalanced RDD that has empty partitions.

  4. Server Problem, we ran into problems retreving data from server, please try again later.

  5. driver program 與 spark 集群版本不一致(1.6.0-1.6.2)
    java.io.InvalidClassException: org.apache.spark.rdd.MapPartitionsRDD; local class incompatible: stream classdesc serialVersionUID = -1059539896677275380, local class serialVersionUID = 6732270565076291202

  6. Yarn Support Exception on Driver:add dependencies

  7. Yarn Application started:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/Logging
    spark.yarn.jar=hdfs://

  8. java.lang.IllegalArgumentException: Required executor memory (1024+384 MB) is above the max threshold (1024 MB) of this cluster! Please check the values of 'yarn.scheduler.maximum-allocation-mb' and/or 'yarn.nodemanager.resource.memory-mb'.

  9. spark ui didn’t work on yarn mode
    癥狀:4040 端口正常,但是全部重定向到 /null
    16/09/13 02:09:02 WARN server.AbstractHttpConnection: header full: java.lang.RuntimeException: Header>6144
    16/09/13 02:09:02 WARN server.AbstractHttpConnection: /null/null/null/null/null/null/…./
    spark 版本,實(shí)質(zhì)可能應(yīng)該是 spark 用的 yarn 版本,與集群版本的沖突,關(guān)鍵在 yarn 的application master url代理重定向不對
    spark-assembly包是 spark 1.6.2 hadoop1.6.0
    但是集群環(huán)境: hadoop1.6.4

  10. 16/09/13 05:30:46 WARN scheduler.TaskSetManager: Lost task 0.0 in stage 0.0 (TID 0, ash-109-35l.labs.microstrategy.com): java.lang.ClassNotFoundException: org.apache.spark.SparkContext$$anonfun$hadoopFile$1$$anonfun$34
    spark.yarn.jar= (版本問題)

  1. /home/hadoop/installed/hadoop-2.6.4/sbin/yarn-daemon.sh: line 125: /tmp/yarn-hadoop-resourcemanager.pid: Permission denied
    查看 /tmp 權(quán)限,chmod 777 /tmp as root account

  2. spark application 起來之后又被 kill, signal 15, SIGTERM.
    16/08/28 21:17:29 ERROR yarn.ApplicationMaster: RECEIVED SIGNAL 15: SIGTERM

  3. 16/09/14 11:38:47 ERROR controller.LightningServer: Permission denied: user=canhuamei, access=WRITE, inode="/":hadoop:supergroup:drwxr-xr-x

  4. ERROR Executor: Exception in task 0.0 in stage 6.0 (TID 5)
    com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 13994
    at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultCla
    streaming做了 checkpoint,application 代碼發(fā)生了變化。需要?jiǎng)h除 checkpoint 文件。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容