Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-536

the shell script 'pig' does not work if PIG_HOME has the word 'hadoop' in it's directory, and pig script is missing in the types branch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • grunt
    • None
    • Patch Available
    • Fixes a bug in bin/pig where jar files in lib/ are not properly added to CLASSPATH when PIG_HOME contains the word 'hadoop'.

    Description

      ran into this one today when running from user 'hadoop' whoose home directory is /home/hadoop/

      also for some reason this script isn't in the pig-types branch..

      Index: bin/pig
      ===================================================================
      — bin/pig (revision 711801)
      +++ bin/pig (working copy)
      @@ -124,7 +124,8 @@

      1. libraries in the lib dir, so don't blindly add them all. Only add the one
      2. that matche PIG_HADOOP_VERSION.
        for f in $PIG_HOME/lib/*.jar; do
      • IS_HADOOP=`echo $f | grep hadoop`
        + FILENAME=`basename $f`
        + IS_HADOOP=`echo $FILENAME | grep hadoop`
        if [ "${IS_HADOOP}x" == "x" ]; then
        CLASSPATH=${CLASSPATH}:$f;
        else

      Attachments

        1. PIG-536.patch
          0.5 kB
          Michael G. Noll

        Activity

          People

            miguno Michael G. Noll
            iholsman Ian Holsman
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: