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

In Spark 3.0 standalone cluster mode, unable to customize driver JVM path

    XMLWordPrintableJSON

Details

    • Question
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • Spark Submit

    Description

      In Spark 3.0 standalone mode, unable to customize driver JVM path, instead the JAVA_HOME of the spark-submit submission machine is used, but the JVM paths of my submission machine and the cluster machine are different

      launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java
      
      List<String> buildJavaCommand(String extraClassPath) throws IOException {
        List<String> cmd = new ArrayList<>();
      
        String firstJavaHome = firstNonEmpty(javaHome,
          childEnv.get("JAVA_HOME"),
          System.getenv("JAVA_HOME"),
          System.getProperty("java.home")); 

      Attachments

        Activity

          People

            Unassigned Unassigned
            obobj Obobj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified