Last active
February 8, 2018 20:35
-
-
Save liyinan926/f9e81f7b54d94c05171a663345eb58bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>fs.gs.impl</name> | |
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem</value> | |
</property> | |
<property> | |
<name>fs.AbstractFileSystem.gs.impl</name> | |
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem</value> | |
</property> | |
<property> | |
<name>fs.gs.project.id</name> | |
<value>${gs.project.id}</value> | |
</property> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gcr.io/ynli-k8s/spark:v2.3.0 | |
RUN rm $SPARK_HOME/jars/guava-14.0.1.jar | |
ADD http://central.maven.org/maven2/com/google/guava/guava/23.0/guava-23.0.jar $SPARK_HOME/jars | |
ADD https://storage.googleapis.com/hadoop-lib/gcs/gcs-connector-latest-hadoop2.jar $SPARK_HOME/jars | |
RUN mkdir -p /opt/hadoop/conf | |
COPY conf/core-site.xml /opt/hadoop/conf | |
COPY conf/spark-env.sh $SPARK_HOME/conf | |
ENTRYPOINT [ "/opt/entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export HADOOP_CONF_DIR="/opt/hadoop/conf" | |
export HADOOP_OPTS="$HADOOP_OPTS -Dgs.project.id=$GS_PROJECT_ID" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment