Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This is to address the addendum of HCATALOG-621, now that the HCatalog jira seems to be in read-only mode. To quote Nick from the original bug:
I'm not sure how this fixes anything for the error listed above. The find command in the script we merged is broken, at least on linux. Maybe it worked with BSD find and we both tested on Macs?
From the patch we committed:
if [ -d ${HBASE_HOME} ] ; then for jar in $(find $HBASE_HOME -name *.jar -not -name thrift\*.jar); do HBASE_CLASSPATH=$HBASE_CLASSPATH:${jar} done export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:${HBASE_CLASSPATH}" fi
The find command syntax is wrong – it returns no jars ever.
$ find /usr/lib/hbase -name *.jar $ find /usr/lib/hbase -name *.jar -not -name thrift\*.jar $
What we need is more like:
$ find /usr/lib/hbase -name '*.jar' ... // prints lots of jars $ find /usr/lib/hbase -name '*.jar' | grep thrift /usr/lib/hbase/lib/libthrift-0.9.0.jar $ find /usr/lib/hbase -name '*.jar' -not -name '*thrift*' | grep thrift $
Attachments
Attachments
Issue Links
- breaks
-
HIVE-20077 hcat command should follow same pattern as hive cli for getting HBase jars
- Closed
- relates to
-
HCATALOG-621 bin/hcat should include hbase jar and dependencies in the classpath
- Patch Available