You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Charles Pritchard (JIRA)" <ji...@apache.org> on 2015/12/30 02:41:49 UTC

[jira] [Commented] (HIVE-12759) msck repair table fails when using custom partition patterns

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

Charles Pritchard commented on HIVE-12759:
------------------------------------------

This may just be a duplicate of https://issues.apache.org/jira/browse/HIVE-8053

> msck repair table fails when using custom partition patterns
> ------------------------------------------------------------
>
>                 Key: HIVE-12759
>                 URL: https://issues.apache.org/jira/browse/HIVE-12759
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Charles Pritchard
>
> msck repair table will fail to add dynamic partitions when using a custom pattern.
> set hcat.dynamic.partitioning.custom.pattern="${year}/${month}/${day}/${hour}";
> CREATE EXTERNAL TABLE raw_line (line string)
> PARTITIONED BY(year STRING, month STRING, day STRING, hour STRING)
> STORED AS TEXTFILE
> LOCATION '/raw/data';
> ....
> org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: partition spec is invalid; field year does not exist or is empty
> 	at org.apache.hadoop.hive.ql.metadata.Hive.createPartition(Hive.java:1628)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.msckAddPartitionsOneByOne(DDLTask.java:1659)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.msck(DDLTask.java:1726)



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