hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <>
Subject [jira] [Commented] (HIVE-13509) HCatalog getSplits should ignore the partition with invalid path
Date Sat, 16 Apr 2016 02:42:25 GMT


Hive QA commented on HIVE-13509:

Here are the results of testing the latest attachment:

{color:green}SUCCESS:{color} +1 due to 2 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 9977 tests executed
*Failed tests:*
TestMiniTezCliDriver-cte_4.q-orc_merge5.q-vectorization_limit.q-and-12-more - did not produce
a TEST-*.xml file

Test results:
Console output:
Test logs:

Executing org.apache.hive.ptest.execution.TestCheckPhase
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: 2 tests failed

This message is automatically generated.

ATTACHMENT ID: 12798886 - PreCommit-HIVE-TRUNK-Build

> HCatalog getSplits should ignore the partition with invalid path
> ----------------------------------------------------------------
>                 Key: HIVE-13509
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>          Components: HCatalog
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>         Attachments: HIVE-13509.1.patch, HIVE-13509.patch
> It is quite common that there is the discrepancy between partition directory and its
HMS metadata, simply because the directory could be added/deleted externally using hdfs shell
command. Technically it should be fixed by MSCK and alter table .. add/drop command etc, but
sometimes it might not be practical especially in a multi-tenant env. This discrepancy does
not cause any problem to Hive, Hive returns no rows for a partition with an invalid (e.g.
non-existing) path, but it fails the Pig load with HCatLoader, because the HCatBaseInputFormat
getSplits throws an error when getting a split for a non-existing path. The error message
might looks like:
> {code}
> Caused by: org.apache.hadoop.mapred.InvalidInputException: Input path does not exist:
> 	at org.apache.hadoop.mapred.FileInputFormat.singleThreadedListStatus(
> 	at org.apache.hadoop.mapred.FileInputFormat.listStatus(
> 	at org.apache.hadoop.mapred.FileInputFormat.getSplits(
> 	at org.apache.hive.hcatalog.mapreduce.HCatBaseInputFormat.getSplits(
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.getSplits(
> {code}

This message was sent by Atlassian JIRA

View raw message