You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/01/09 11:30:09 UTC

[jira] [Commented] (HIVE-3396) hive.stats.reliable config causes FileSinkOperator to fail when writing empty file

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

Hudson commented on HIVE-3396:
------------------------------

Integrated in Hive-trunk-hadoop2 #54 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/54/])
    HIVE-3396. hive.stats.reliable config causes FileSinkOperator to fail when writing empty file. (kevinwilfong reviewed by njain) (Revision 1377146)

     Result = ABORTED
kevinwilfong : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1377146
Files : 
* /hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStatsPublisher.java
* /hive/trunk/hbase-handler/src/test/queries/positive/hbase_stats_empty_partition.q
* /hive/trunk/hbase-handler/src/test/results/positive/hbase_stats_empty_partition.q.out
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/stats/jdbc/JDBCStatsPublisher.java
* /hive/trunk/ql/src/test/queries/clientpositive/stats_empty_partition.q
* /hive/trunk/ql/src/test/results/clientpositive/stats_empty_partition.q.out

                
> hive.stats.reliable config causes FileSinkOperator to fail when writing empty file
> ----------------------------------------------------------------------------------
>
>                 Key: HIVE-3396
>                 URL: https://issues.apache.org/jira/browse/HIVE-3396
>             Project: Hive
>          Issue Type: Bug
>          Components: Statistics
>    Affects Versions: 0.10.0
>            Reporter: Kevin Wilfong
>            Assignee: Kevin Wilfong
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3396.1.patch.txt
>
>
> With the configs hive.stats.reliable and hive.stats.autogather are set to true, and using either the HBase or JDBC Stats Publishers, if a FileSinkOperator does not receive any rows, and hence collects no stats, it will throw an exception.
> Related, if hive.stats.reliable is set to false it will still log a warning which seems unnecessary.
> Repro:
> create table tmptable(key string, value string) partitioned by (part string);
> set hive.stats.autogather=true;
> set hive.stats.reliable=true;
> insert overwrite table tmptable partition (part = '1') select * from src where key = 'no_such_value';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira