Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2959

Add SPARK_DIST_CLASSPATH to include libraries for HDFS and YARN

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.1
    • 1.3.0
    • build, spark
    • None

    Description

      It might be a better way to use SPARK_DIST_CLASSPATH for including the Hadoop libs instead of CLASSPATH.

      export SPARK_DIST_CLASSPATH=$(hadoop classpath)
      

      Refs. Using Spark's "Hadoop Free" Build, https://spark.apache.org/docs/2.1.1/hadoop-provided.html

      Current spark-env.sh:

      # Let's make sure that all needed hadoop libs are added properly
      export CLASSPATH="$CLASSPATH:$HADOOP_HOME/*:$HADOOP_HDFS_HOME/*:$HADOOP_YARN_HOME/*:$HADOOP_MAPRED_HOME/*"
      

      Attachments

        Issue Links

          Activity

            People

              warwithin YoungWoo Kim
              warwithin YoungWoo Kim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: