本文主要参考: a. https://www.cnblogs.com/yy3b2007com/p/10934090.html 0. 说明 a. 关于spark源码会不定期的更新与补充 b. 对于spark源码的历史博文,也会不定期修改.增加.优化 c. spark源码对应的spark版本为2.4.1 1. 引导 该篇主要讲解执行spark-submit.sh脚本时将任务提交给Yarn阶段代码分析.其中spark的代码版本为2.4.1. (1) spark-submit的入口函数 一般提交一个sp…
(1)控制台Yarn(Cluster模式)打印的异常日志: client token: N/A diagnostics: Application application_1584359355781_0002 failed 2 times due to AM Container for appattempt_1584359355781_0002_000002 exited with exitCode: -1000 due to: File does not exist: hdfs…
hadoop2.7.2 MapReduce Job提交源码及切片源码分析 首先从waitForCompletion函数进入 boolean result = job.waitForCompletion(true); /** * Submit the job to the cluster and wait for it to finish. * @param verbose print the progress to the user * @return true if the job succe…