1

我能够连接到我的 Hive 元存储,并执行 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 地址上窒息?不完全确定我理解这个问题。

干杯,马特

4

1 回答 1

1

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

于 2013-11-14T19:32:31.580 回答