hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7762) Enhancement while getting partitions via webhcat client
Date Mon, 22 Sep 2014 10:42:33 GMT

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

Hive QA commented on HIVE-7762:
-------------------------------



{color:red}Overall{color}: -1 at least one tests failed

Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12670381/HIVE-7762.3.patch

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 6301 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.ql.parse.TestParse.testParse_union
{noformat}

Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/920/testReport
Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/920/console
Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-920/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 1 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12670381

> Enhancement while getting partitions via webhcat client
> -------------------------------------------------------
>
>                 Key: HIVE-7762
>                 URL: https://issues.apache.org/jira/browse/HIVE-7762
>             Project: Hive
>          Issue Type: Improvement
>          Components: WebHCat
>            Reporter: Suhas Vasu
>            Priority: Minor
>         Attachments: HIVE-7762.2.patch, HIVE-7762.3.patch, HIVE-7762.patch
>
>
> Hcatalog creates partitions in lower case, whereas getting partitions from hcatalog via
webhcat client doesn't handle this. So the client starts throwing exceptions.
> Ex:
> CREATE EXTERNAL TABLE in_table (word STRING, cnt INT) PARTITIONED BY (Year STRING, Month
STRING, Date STRING, Hour STRING, Minute STRING) STORED AS TEXTFILE LOCATION '/user/suhas/hcat-data/in/';
> Then i try to get partitions by:
> {noformat}
>         String inputTableName = "in_table";
>         String database = "default";
>         Map<String, String> partitionSpec = new HashMap<String, String>();
>         partitionSpec.put("Year", "2014");
>         partitionSpec.put("Month", "08");
>         partitionSpec.put("Date", "11");
>         partitionSpec.put("Hour", "00");
>         partitionSpec.put("Minute", "00");
>         HCatClient client = get(catalogUrl);
>         HCatPartition hCatPartition = client.getPartition(database, inputTableName, partitionSpec);
> {noformat}
> This throws up saying:
> {noformat}
> Exception in thread "main" org.apache.hcatalog.common.HCatException : 9001 : Exception
occurred while processing HCat request : Invalid partition-key specified: year
> 	at org.apache.hcatalog.api.HCatClientHMSImpl.getPartition(HCatClientHMSImpl.java:366)
> 	at com.inmobi.demo.HcatPartitions.main(HcatPartitions.java:34)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> {noformat}
> The same code works if i do
> {noformat}
>         partitionSpec.put("year", "2014");
>         partitionSpec.put("month", "08");
>         partitionSpec.put("date", "11");
>         partitionSpec.put("hour", "00");
>         partitionSpec.put("minute", "00");
> {noformat}



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

Mime
View raw message