gpt4 book ai didi

python - 如何增加bluemix上spark-submit作业的日志输出?

转载 作者:行者123 更新时间:2023-12-01 03:57:29 25 4
gpt4 key购买 nike

我已将 python 作业作为服务提交给 bluemix Spark,但它失败了。不幸的是,日志记录不足,并且没有给我任何失败原因的线索。

如何提高日志级别输出?

spark 作为服务的输出:

==== 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 集群上运行时,我还会得到更详细的输出。

最佳答案

stderr-%timestamp%stdout-%timestamp% 文件从集群下载到您运行 spark-submit.sh< 的本地目录。通常您会在这两个文件中找到工作问题。

引用:http://spark.apache.org/docs/latest/spark-standalone.html#monitoring-and-logging

关于python - 如何增加bluemix上spark-submit作业的日志输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37195709/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com