Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Add support for fetching application dependencies from HDFS #584

@hex108

Description

@hex108

To add support for fetching application dependencies from HDFS, we need to mount HADOOP_CONF_DIR to init container.

Usage example:

$ export HADOOP_CONF_DIR=pwd/hadoopconf

$ bin/spark-submit --deploy-mode cluster --class org.apache.spark.examples.SparkPi 
--master k8s://http://localhost:8080 --kubernetes-namespace default
--conf spark.executor.instances=5 
--conf spark.app.name=spark-pi
--conf spark.kubernetes.driver.docker.image=jungong/spark-driver:hdfs
--conf spark.kubernetes.executor.docker.image=jungong/spark-executor:hdfs
--conf spark.kubernetes.initcontainer.docker.image=jungong/spark-init:hdfs
--conf spark.kubernetes.initcontainer.inannotation=true
--conf spark.kubernetes.docker.image.pullPolicy=Always
hdfs://hdfsCluster/spark/spark-examples_2.11-2.2.0-k8s-0.5.0.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions