You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Damien Carol (JIRA)" <ji...@apache.org> on 2014/07/09 18:28:04 UTC

[jira] [Commented] (HIVE-7374) SHOW COMPACTIONS fail on trunk

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

Damien Carol commented on HIVE-7374:
------------------------------------

The bug is simple. An object of type ShowCompactResponse is build without list of ShowCompactResponseElement.
This throws errors in thrift part because it's a required field.
The patch adds an empty list when the ShowCompactResponse object is instantiated.

> SHOW COMPACTIONS fail on trunk
> ------------------------------
>
>                 Key: HIVE-7374
>                 URL: https://issues.apache.org/jira/browse/HIVE-7374
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Metastore
>    Affects Versions: 0.14.0
>            Reporter: Damien Carol
>              Labels: cli, compaction, metastore
>         Attachments: HIVE-7374.1.patch
>
>
> In CLI in trunk after doing this :
> {code}
> show compactions;
> {code}
> Return error :
> {code}
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. org.apache.thrift.transport.TTransportException
> {code}
> In metatore :
> {noformat}
> 2014-07-09 17:54:10,537 ERROR [pool-3-thread-20]: server.TThreadPoolServer (TThreadPoolServer.java:run(213)) - Thrift error occurred during processing of message.
> org.apache.thrift.protocol.TProtocolException: Required field 'compacts' is unset! Struct:ShowCompactResponse(compacts:null)
>         at org.apache.hadoop.hive.metastore.api.ShowCompactResponse.validate(ShowCompactResponse.java:310)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$show_compact_result.validate(ThriftHiveMetastore.java)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$show_compact_result$show_compact_resultStandardScheme.write(ThriftHiveMetastore.java)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$show_compact_result$show_compact_resultStandardScheme.write(ThriftHiveMetastore.java)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$show_compact_result.write(ThriftHiveMetastore.java)
>         at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:53)
>         at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:103)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:206)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)