Pig
  1. Pig
  2. PIG-1346

In unit tests Util.executeShellCommand relies on java commands being in the path and does not consider JAVA_HOME

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0, 0.7.0
    • Fix Version/s: 0.6.0, 0.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Util.executeShellCommand is currently used in unit tests to execute java related binaries like "java", "javac", "jar" - this method should check if JAVA_HOME is set and use $JAVA_HOME/bin/java etc. If JAVA_HOME is not set, the method can try and execute the command as-is.

      1. PIG-1346.patch
        4 kB
        Pradeep Kamath
      2. PIG-1346-2.patch
        4 kB
        Pradeep Kamath

        Activity

        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Pradeep Kamath made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.7.0 [ 12314397 ]
        Fix Version/s 0.6.0 [ 12314214 ]
        Resolution Fixed [ 1 ]
        Pradeep Kamath made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Pradeep Kamath made changes -
        Attachment PIG-1346-2.patch [ 12440552 ]
        Pradeep Kamath made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Pradeep Kamath made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Pradeep Kamath made changes -
        Field Original Value New Value
        Attachment PIG-1346.patch [ 12440408 ]
        Pradeep Kamath created issue -

          People

          • Assignee:
            Pradeep Kamath
            Reporter:
            Pradeep Kamath
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development