向Prestodb中的Hive表发出SELECT查询时出现问题

时间:2013-11-13 22:56:20

标签: hive presto

我可以连接到我的Hive Metastore,并进行DESCRIBE:

DESCRIBE sample_07;
Query 20131113_025614_00005_af2fx, RUNNING, 1 node, 2 splits
   Column    |  Type   | Null | Partition Key 
-------------+---------+------+---------------
 code        | varchar | true | false         
 description | varchar | true | false         
 total_emp   | bigint  | true | false         
 salary      | bigint  | true | false         
(4 rows)

但是,SELECT不起作用:

select * from sample_07;

2013-11-12T16:54:58.611-0800    DEBUG   query-scheduler-7   com.facebook.presto.execution.QueryStateMachine Query 20131113_005458_00004_af2fx is PLANNING
Query 20131113_005458_00004_af2fx failed: java.io.IOException: Failed on local exception: com.facebook.presto.hadoop.shaded.com.google.protobuf.InvalidProtocolBufferException: Message missing required fields: callId, status; Host Details : local host is: "sandbox.hortonworks.com/xx.xx.2.15"; destination host is: "sandbox.hortonworks.com":8020; 
presto:default> 2013-11-12T16:56:04.771-0800    ERROR   Stage-20131113_005458_00004_af2fx.1-219 com.facebook.presto.execution.SqlStageExecution Error while starting stage 20131113_005458_00004_af2fx.1 ~[guava-15.0.jar:na]
    at com.facebook.presto.hive.HiveSplitIterable$HiveSplitQueue.computeNext(HiveSplitIterable.java:433) ~[na:na]
    at com.facebook.presto.hive.HiveSplitIterable$HiveSplitQueue.computeNext(HiveSplitIterable.java:392) ~[na:na]
    at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-15.0.jar:na]
    at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-15.0.jar:na]

正如您所知,我正在使用Hortonworks的沙盒,所以问题可能就是这个问题?还是窒息IP地址?不完全确定我理解这个问题。

欢呼声, 马特

1 个答案:

答案 0 :(得分:1)

您的错误消息表明您没有针对CDH4运行Presto,而是针对Hortonworks Sandbox,我认为是Hadoop 2.2.0。此时存在已知的不兼容性。有关详细信息,请参阅Presto Google Group上的此主题:https://groups.google.com/forum/#!topic/presto-users/lVLvMGP1sKE