Add run of pyspark

Co-authored-by: Romain <romainx@users.noreply.github.com>
This commit is contained in:
Tony
2021-03-27 10:08:54 +01:00
committed by GitHub
parent ed67f69ae2
commit fa8cea32f6

View File

@@ -542,4 +542,9 @@ RUN echo 'spark.jars.packages io.delta:delta-core_2.12:0.8.0' >> $SPARK_HOME/con
echo 'spark.sql.catalog.spark_catalog org.apache.spark.sql.delta.catalog.DeltaCatalog' >> $SPARK_HOME/conf/spark-defaults.conf
USER $NB_UID
# Run pyspark and exit to trigger the download of the delta lake jars
RUN echo "quit()" > /tmp/init-delta.py && \
spark-submit /tmp/init-delta.py && \
rm /tmp/init-delta.py
```