【问题标题】:Connection Issue for Presto with Hive :Read timed out ExceptionPresto 与 Hive 的连接问题:读取超时异常
【发布时间】:2015-03-07 14:35:53
【问题描述】:

我正在使用 presto 0.89 和 cdh5 Hadoop。 对于 Hive,使用 mysql 作为 Metastore。

这是我的配置:

hive.properties

connector.name=hive-cdh5
hive.metastore.uri=thrift://demo:9083
hive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml

这里是 config.properties

coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8081
datasources=jmx,hive,mysql
#presto-metastore.db.type=h2
#presto-metastore.db.filename=var/db/MetaStore
task.max-memory=1GB
discovery-server.enabled=true
discovery.uri=http://demo.com:8081

错误信息:

presto:test_db> DESCRIBE hive.test_db.tmp_sears_sign_data;
**Query 20150109_122634_00002_p3r9r failed: x.x.x.x: java.net.SocketTimeoutException: Read timed out**

【问题讨论】:

  • 如果您在启动 presto cli 时通过了 --debug,您将获得带有错误消息的完整堆栈跟踪。由于这是一个元数据查询,我猜 Presto 协调器在连接到您的 Hive Metastore 时遇到问题。您可以从协调器机器连接到 Hive Metastore 吗?您可以使用“telnet demo 9083”之类的东西进行测试。

标签: java hadoop hive cloudera-cdh presto


【解决方案1】:

尝试从 presto-cli 以 --debug 模式运行您的查询。我相信从您的主机到元存储存在一些连接问题。要解决此问题,您可以尝试从协调器节点 ping 到您的元存储,以检查它是否正常工作。如果一切正常,那么您可以检查您的所有工作节点是否都使用select * from jmx.system.nodes

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-16
    • 2019-10-21
    • 1970-01-01
    • 2012-09-06
    • 2012-10-24
    • 2019-08-15
    • 2014-08-19
    • 2012-09-28
    相关资源
    最近更新 更多