[ 
https://issues.apache.org/jira/browse/HIVE-12058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14953562#comment-14953562
 ] 

Jimmy Xiang commented on HIVE-12058:
------------------------------------

With the change, when hbase mapredcp works, this script may not work any more. 
For exmaple, on my cluster hbase mapredcp returns the following
{noformat}
2015-10-12 11:51:45,630 WARN  [main] util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
/data/tarball/hbase-0.98.11-hadoop2/lib/hbase-protocol-0.98.11-hadoop2.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/hbase-client-0.98.11-hadoop2.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/hbase-common-0.98.11-hadoop2.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/hbase-server-0.98.11-hadoop2.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/hbase-hadoop-compat-0.98.11-hadoop2.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/netty-3.6.6.Final.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/protobuf-java-2.5.0.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/zookeeper-3.4.6.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/high-scale-lib-1.1.1.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/guava-12.0.1.jar:/data/tarball/hbase-0.98.11-hadoop2/lib/htrace-core-2.04.jar
{noformat}

> Change hive script to record errors when calling hbase fails
> ------------------------------------------------------------
>
>                 Key: HIVE-12058
>                 URL: https://issues.apache.org/jira/browse/HIVE-12058
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, HiveServer2
>    Affects Versions: 0.14.0, 1.1.0, 2.0.0
>            Reporter: Yongzhi Chen
>            Assignee: Yongzhi Chen
>         Attachments: HIVE-12058.1.patch
>
>
> By default hive will try to find out which jars need to be added to the 
> classpath in order to run MR jobs against an HBase cluster, however if hbase 
> can't be found or if hbase mapredcp fails, the hive script  will fail 
> silently and ignore some of the jars to be included into the. That makes very 
> difficult to analyze the real problem.
> Hive script should record the error not just simply redirect two hbase 
> failures:
> HBASE_BIN=$
> {HBASE_BIN:-"$(which hbase 2>/dev/null)"}
> $HBASE_BIN mapredcp 2>/dev/null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to