ramyadass commented on issue #864:
URL:
https://github.com/apache/datafusion-comet/issues/864#issuecomment-2566140875
I get similar error when invoking with spark-shell. Tried below:
a) Uploaded the jar to hdfs:
hdfs:///home/hadoop/libraries/comet-spark-spark3.5_2.12-0.4.0.jar
and then executed below spark-shell command:
spark-shell --jars
hdfs:///home/hadoop/libraries/comet-spark-spark3.5_2.12-0.4.0.jar
b) Ran above command and verified class is loaded in driver, using below
code:
val clazz =
Class.forName("org.apache.spark.sql.comet.execution.shuffle.CometShuffleManager")
println(clazz)
c) ) Verified class is loaded in executor using below code:
val rdd = sc.parallelize(Seq(1), 1)
rdd.map { _ =>
val clazz =
Class.forName("org.apache.spark.sql.comet.execution.shuffle.CometShuffleManager")
s"Executor loaded class: $clazz"
}.collect().foreach(println)
d) When invoked with --conf spark.shuffle.manager, keep getting class not
found exception for CometShuffleManager
spark-shell --jars
hdfs:///home/hadoop/libraries/comet-spark-spark3.5_2.12-0.4.0.jar --conf
spark.driver.extraClassPath=hdfs:///home/hadoop/libraries/comet-spark-spark3.5_2.12-0.4.0.jar
--conf
spark.executor.extraClassPath=hdfs:///home/hadoop/libraries/comet-spark-spark3.5_2.12-0.4.0.jar
--conf
spark.shuffle.manager=org.apache.spark.sql.comet.execution.shuffle.CometShuffleManager
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]