Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34480

Module launcher build failed with profile hadoop-3.2 activated

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: Spark Submit
    • Labels:
      None

      Description

      Build spark 3.0.1 with profile hadoop-3.2 activated

      build/mvn -pl :spark-launcher_2.12 package -DskipTests -Phadoop-3.2 -Phive -Phive-thriftserver -Pkubernetes
      

      When building the spark-launcher module it complains that lacking the common-lang dependency:

      [INFO] --- scala-maven-plugin:4.3.0:compile (scala-compile-first) @ spark-launcher_2.12 ---
      [INFO] Using incremental compilation using Mixed compile order
      [INFO] Compiler bridge file: /Users/lichuanliang/.sbt/1.0/zinc/org.scala-sbt/org.scala-sbt-compiler-bridge_2.12-1.3.1-bin_2.12.10__52.0-1.3.1_20191012T045515.jar
      [INFO] Compiling 20 Java sources to /Users/lichuanliang/IdeaProjects/qtt-spark-3.0/launcher/target/scala-2.12/classes ...
      [ERROR] [Error] /Users/lichuanliang/IdeaProjects/qtt-spark-3.0/launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:20: package org.apache.commons.lang does not exist
      [ERROR] [Error] /Users/lichuanliang/IdeaProjects/qtt-spark-3.0/launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:226: cannot find symbol
        symbol:   variable StringUtils
        location: class org.apache.spark.launcher.SparkSubmitCommandBuilder
      [ERROR] [Error] /Users/lichuanliang/IdeaProjects/qtt-spark-3.0/launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:227: cannot find symbol
        symbol:   variable StringUtils
        location: class org.apache.spark.launcher.SparkSubmitCommandBuilder
      [ERROR] [Error] /Users/lichuanliang/IdeaProjects/qtt-spark-3.0/launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java:232: cannot find symbol
        symbol:   variable StringUtils
        location: class org.apache.spark.launcher.SparkSubmitCommandBuilder
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              artiship Lichuanliang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment