Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4059 Pig on Spark
  3. PIG-4605

fix a bug when coping Jar to SparkJob working directory

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • spark-branch
    • spark
    • None

    Description

      The function SparkLauncher.addJarToSparkJobWorkingDirectory() try to copy the user's Jar files to the working directory.

      when SPARK_MATER == LOCAL, and if the src & dest Jar files have the same absolute path, an exception will be thrown.

      Reproduce steps:
      1. build pig tutorial
      2. cd PIG_HOME/tutorial/pigtmp
      pig -x spark
      REGISTER ./tutorial.jar
      raw = LOAD '/user/excite-small.log' USING PigStorage('\t') AS (user, time, query);
      clean1 = FILTER raw BY org.apache.pig.tutorial.NonURLDetector(query);
      store clean1 into '/user/result1';

      Attachments

        1. PIG-4605.patch
          0.8 kB
          Xianda Ke

        Activity

          People

            kexianda Xianda Ke
            kexianda Xianda Ke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: