当前位置: 首页 > backend >正文

记一次运行spark报错

提交spark任务运次报错

06/03 18:27:50 INFO Client: Setting up container launch context for our AM
25/06/03 18:27:50 INFO Client: Setting up the launch environment for our AM container
25/06/03 18:27:50 INFO Client: Preparing resources for our AM container
25/06/03 18:27:50 WARN Client: Neither spark.yarn.jars nor spark.yarn.archive is set, falling back to uploading libraries under SPARK_HOME.
25/06/03 18:27:59 INFO Client: Uploading resource file:/tmp/spark-27957b63-3767-457f-a931-cc7f84917c3e/__spark_libs__545909112269949051.zip -> hdfs://everdc/user/hdfs/.sparkStaging/application_1748248020756_0040/__spark_libs__545909112269949051.zip
25/06/03 18:28:02 INFO Client: Uploading resource file:/opt/apps/everdc/spark_jars/everdc-stand-model-engine-spark-4.9.0.jar -> hdfs://everdc/user/hdfs/.sparkStaging/application_1748248020756_0040/everdc-stand-model-engine-spark-4.9.0.jar
25/06/03 18:28:02 INFO Client: Uploading resource file:/app/logs/model_run_2.json -> hdfs://everdc/user/hdfs/.sparkStaging/application_1748248020756_0040/model_run_2.json
25/06/03 18:28:02 INFO Client: Uploading resource file:/tmp/spark-27957b63-3767-457f-a931-cc7f84917c3e/__spark_conf__4210376678626642445.zip -> hdfs://everdc/user/hdfs/.sparkStaging/application_1748248020756_0040/__spark_conf__.zip
25/06/03 18:28:03 INFO SecurityManager: Changing view acls to: root,hdfs
25/06/03 18:28:03 INFO SecurityManager: Changing modify acls to: root,hdfs
25/06/03 18:28:03 INFO SecurityManager: Changing view acls groups to: 
25/06/03 18:28:03 INFO SecurityManager: Changing modify acls groups to: 
25/06/03 18:28:03 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(root, hdfs); groups with view permissions: Set(); users  with modify permissions: Set(root, hdfs); groups with modify permissions: Set()
25/06/03 18:28:03 INFO Client: Deleted staging directory hdfs://everdc/user/hdfs/.sparkStaging/application_1748248020756_0040
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.getPassword(Ljava/lang/String;)[Cat org.apache.spark.SSLOptions$.$anonfun$parse$8(SSLOptions.scala:194)at scala.Option.orElse(Option.scala:447)at org.apache.spark.SSLOptions$.parse(SSLOptions.scala:194)at org.apache.spark.SecurityManager.<init>(SecurityManager.scala:98)at org.apache.spark.deploy.yarn.Client.createContainerLaunchContext(Client.scala:1137)at org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:220)at org.apache.spark.deploy.yarn.Client.run(Client.scala:1327)at org.apache.spark.deploy.yarn.YarnClusterApplication.start(Client.scala:1764)

报错中org.apache.hadoop.conf.Configuration.getPassword,这个方法找不到,hadoop在2.7以上版本中才有这个方法,查看运行hadoop环境hadoop是2.4.5的版本的,升级到hadoop2.7后正常

http://www.xdnf.cn/news/11986.html

相关文章:

  • 【Linux】编译器gcc/g++及其库的详细介绍
  • NumPy 2.x 完全指南【二十四】结构化数组
  • Springboot——整合websocket并根据type区别处理
  • 【25软考网工】第十章 网络规划与设计(1)综合布线
  • 【HarmonyOS 5】生活与服务开发实践详解以及服务卡片案例
  • vue源码解析——diff算法
  • Golang——7、包与接口详解
  • 每天掌握一个Linux命令 - rpm
  • 前端组件推荐 Swiper 轮播与 Lightbox 灯箱组件深度解析
  • day63—回溯—全排列(LeetCode-46)
  • SimpleDateFormat 和 DateTimeFormatter 的异同
  • OpenCV C/C++ 视频播放器 (支持调速和进度控制)
  • MySQL 事务的 ACID 四大特性及其实现原理
  • 【echarts】堆叠柱形图
  • ubuntu自定义服务自动启动
  • Python绘图库及图像类型
  • SARIMA时间序列分析:三大模型对比
  • AWS中国区IAM相关凭证自行管理策略(只读CodeCommit版)
  • 【通用技巧】使用 AI 进行技术写作:使用 AI 写作助手编写技术内容的方法
  • MySQL 核心知识点解析
  • 高防IP可以防护什么攻击类型?企业网络安全的第一道防线
  • 找到每一个单词+模拟的思路和算法
  • Elasticsearch的写入性能优化
  • 常见优化器Optimizer总结
  • 网络编程之TCP编程
  • shell脚本一步完成批量创建删除Linux用户
  • 3D动画在微信小程序的实现方法
  • C语言数据结构笔记3:Union联合体+结构体取8位Bool量
  • 109页PPT华为流程模块L1-L4级梳理及研发采购服务资产5级建模
  • 如何通过RL真正提升大模型的推理能力?NVIDIA提出长期强化学习训练框架ProRL