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

Spark App executes unintended commands

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.3
    • None
    • YARN
    • None

    Description

      Spark commits a task and Yarn executes the command directly using bash -c, if the commit contains ``` it will execute the statement directly, this has some impact on Yarn, does Saprk need to intercept this case

      hadoop ContainerExecutor.java

      ContainerLaunch.ShellScriptBuilder sb =
          ContainerLaunch.ShellScriptBuilder.create();
      ...
      sb.command(command);
      
      PrintStream pout = null;
      try {
        pout = new PrintStream(out, false, "UTF-8");
        sb.write(pout);
      } finally {
        if (out != null) {
          out.close();
        }
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            xian1 XianXianwang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: