1
我已經提交了一個python作業來將bluemix作爲一項服務並且失敗。不幸的是,伐木是不夠的,並沒有給我一個線索,爲什麼它失敗了。如何增加bluemix上spark-submit作業的日誌輸出?
如何增加日誌級別輸出?從火花
輸出作爲一項服務:
==== Failed Status output =====================================================
Getting status
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Thu, 12 May 2016 19:09:30 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 850
Connection: keep-alive
{
"action" : "SubmissionStatusResponse",
"driverState" : "ERROR",
"message" : "Exception from the cluster:
org.apache.spark.SparkUserAppException: User application exited with 255
org.apache.spark.deploy.PythonRunner$.main(PythonRunner.scala:88)
org.apache.spark.deploy.PythonRunner.main(PythonRunner.scala)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
java.lang.reflect.Method.invoke(Method.java:507)
org.apache.spark.deploy.ego.EGOClusterDriverWrapper$$anon$3.run(EGOClusterDriverWrapper.scala:430)",
"serverSparkVersion" : "1.6.0",
"submissionId" : "xxxxxx",
"success" : true
}
===============================================================================
我得罪一個BigInsights集羣成功運行同樣的工作。在biginsights集羣上運行時,我也獲得了更多的詳細輸出。