火花提交加入classpath中的多个罐子 [英] spark submit add multiple jars in classpath

查看:119
本文介绍了火花提交加入classpath中的多个罐子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行星火计划在那里我有多个JAR文件,如果我只有一个罐子,我无法运行。我想补充两个jar文件这是在同一个位置。我曾尝试以下,但它显示了一个错误的依赖

I am trying to run a spark program where i have multiple jar files, if I had only one jar I am not able run. I want to add both the jar files which are in same location. I have tried the below but it shows a dependency error

spark-submit \
  --class "max" maxjar.jar Book1.csv test \
  --driver-class-path /usr/lib/spark/assembly/lib/hive-common-0.13.1-cdh​5.3.0.jar

我怎样才能添加其他的jar文件是在同一目录?

How can i add another jar file which is in the same directory?

我要添加 /usr/lib/spark/assembly/lib/hive-serde.jar

推荐答案

只需使用--jars参数。星火将与执行者共享这些罐子(逗号分隔)。

Just use the --jars parameter. Spark will share those jars (comma-separated) with the executors.

这篇关于火花提交加入classpath中的多个罐子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆