limited-cricket-18852
12/15/2021, 5:39 PMCaused by: java.lang.ClassNotFoundException: com.linkedin.datahub.lineage.spark.interceptor.DatahubLineageEmitter
Does anyone know if there is anything special to do when running on databricks?big-carpet-38439
12/15/2021, 5:43 PMbig-carpet-38439
12/15/2021, 5:43 PMmammoth-bear-12532
big-carpet-38439
12/15/2021, 5:43 PMbig-carpet-38439
12/15/2021, 5:43 PMmammoth-bear-12532
mammoth-bear-12532
limited-cricket-18852
12/15/2021, 5:45 PMlimited-cricket-18852
12/15/2021, 5:45 PMmammoth-bear-12532
dazzling-judge-80093
12/15/2021, 5:59 PM--jars option on spark-submit pyspark/etc⦠->
https://spark.apache.org/docs/latest/submitting-applications.html#advanced-dependency-managementdazzling-judge-80093
12/15/2021, 6:01 PMdazzling-judge-80093
12/15/2021, 6:02 PMdazzling-judge-80093
12/15/2021, 6:04 PMspark-sql --master "local[2]" --jars <https://jdbc.postgresql.org/download/postgresql-42.3.1.jar>limited-cricket-18852
12/15/2021, 7:05 PMlimited-cricket-18852
12/15/2021, 7:05 PM--jars params thenlimited-cricket-18852
12/15/2021, 7:05 PMlimited-cricket-18852
12/16/2021, 1:03 PMspark.jars.packages io.acryl:spark-lineage:0.0.1 will make the spark cluster to automatically pull and install the jar from the maven-central?dazzling-judge-80093
12/16/2021, 1:06 PMlimited-cricket-18852
12/16/2021, 1:11 PMlimited-cricket-18852
12/16/2021, 1:11 PMmammoth-bear-12532
limited-cricket-18852
12/16/2021, 4:26 PMmammoth-bear-12532
0.0.2 is here.
<https://repo1.maven.org/maven2/io/acryl/datahub-spark-lineage/0.0.2/>
https://datahubproject.io/docs/spark-lineage/limited-cricket-18852
12/17/2021, 1:22 AMjava.lang.ClassNotFoundException: com.linkedin.datahub.lineage.spark.interceptor.DatahubLineageEmitter
But I just noticed that this library supports 2.x while I am using 3.x.
I will try to make a build upgrading the spark dependency and see how it goes.dazzling-judge-80093
12/17/2021, 7:44 AMlimited-cricket-18852
12/17/2021, 11:41 AMspark.jars.packages io.acryl:datahub-spark-lineage:0.0.2
spark.extraListeners com.linkedin.datahub.lineage.spark.interceptor.DatahubLineageEmitter
spark.datahub.lineage.mcpEmitter.gmsUrl <http://localhost:8080>
If this knows to look for the DatahubLineageEmitter, it means that it correctly parsed the spark.extraListeners parameter. But it would not find the class either:
⢠setting the configuration spark.jars.packages
⢠adding the jar to the job (fat jar)
⢠uploading the jar to the cluster (databricks has a special UI for this)limited-cricket-18852
12/17/2021, 11:41 AMdazzling-judge-80093
12/17/2021, 2:25 PMlimited-cricket-18852
12/17/2021, 5:16 PMloud-island-88694
careful-pilot-86309
12/20/2021, 5:45 AMcareful-pilot-86309
12/20/2021, 6:51 AMlimited-cricket-18852
12/20/2021, 1:11 PM