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



我能够连接到我的Hive元存储,并执行描述:

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 * 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 地址?不完全确定我是否理解这个问题。

干杯马 特

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

相关内容

  • 没有找到相关文章

最新更新