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`