Skip to content

could not connect to Doris in Spark when in a cluster mode #9486

Answered by no7dw
no7dw asked this question in Q&A
Discussion options

You must be logged in to vote

after help from community, this article
Yarn集群模式运行的Spark,则将此文件放入预部署包中。
预部署包 or so called pre-deployment package

the package folder which located according to config file : $SPARK_HOME/conf/spark-defaults.conf
spark.yarn.jars=local:/usr/lib/spark/jars/*

by appending the hdfs file path , and retry will work
spark.yarn.jars=local:/usr/lib/spark/jars/*,hdfs:///spark-jars/doris-spark-connector-3.1.2-2.12-1.0.0.jar


$hdfs dfs -mkdir /spark-jars/
$hdfs dfs -put /usr/lib/spark/jars/doris-spark-connector-3.1.2-2.12-1.0.0.jar /spark-jars/
$ hdfs dfs -ls /spark-jars/
Found 1 items
-rw-r--r--   2 dengwei hadoop    7280507 2022-05-11 16:09 /spark-jars/doris-spark-connector-3.1.2-2.12-1.0.0.jar

#

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by no7dw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant