Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-457

/usr/bin/pig output warn log when hbase not installed

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: CDH4.1.2
    • Fix Version/s: None
    • Component/s: Pig
    • Labels:
      None

      Description

      /usr/bin/pig output warn log when hbase not installed.

      $ /usr/bin/pig
      which: no hbase in (:/usr/lib64/qt-3.3/bin:/usr/java/default/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
      ....
      

      /usr/bin/pig

      HBASE_BINARY=`PATH=${HBASE_HOME}:$PATH which hbase`
      if [ -n "$HBASE_BINARY" ] ; then
        export PIG_CLASSPATH=$PIG_CLASSPATH:`$HBASE_BINARY classpath`
      fi
      

      For example, STDERR pipe to /dev/null

      HBASE_BINARY=`PATH=${HBASE_HOME}:$PATH which hbase 2>/dev/null`
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tamtam180 tamtam180
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: