Skip to content

Commit

Permalink
fix arrow issue for java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
pyalex committed Apr 27, 2021
1 parent af0ec85 commit bf4def6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/docker/spark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ ADD https://repo1.maven.org/maven2/com/linkedin/sparktfrecord/spark-tfrecord_2.1
ADD https://storage.googleapis.com/hadoop-lib/gcs/gcs-connector-hadoop2-${GCS_CONNECTOR_VERSION}.jar /opt/spark/jars
ADD https://repo1.maven.org/maven2/com/google/cloud/spark/spark-bigquery-with-dependencies_2.12/${BQ_CONNECTOR_VERSION}/spark-bigquery-with-dependencies_2.12-${BQ_CONNECTOR_VERSION}.jar /opt/spark/jars


# Fix arrow issue for jdk-11
RUN mkdir -p /opt/spark/conf
RUN echo 'spark.driver.extraJavaOptions="-Dio.netty.tryReflectionSetAccessible=true"' >> $SPARK_HOME/conf/spark-defaults.conf
RUN echo 'spark.executor.extraJavaOptions="-Dio.netty.tryReflectionSetAccessible=true"' >> $SPARK_HOME/conf/spark-defaults.conf

ENTRYPOINT [ "/opt/entrypoint.sh" ]

0 comments on commit bf4def6

Please sign in to comment.