我正在尝试设置Presto和一个独立的Hive亚稳态,以查询S3中的一些数据。我下载了“独立的亚稳态”软件包,安装并启动了MySQL,初始化并启动了亚稳,并启动了Presto。
看来我可以从普雷斯托连接到Metastore了。在etc/catalog/s3.properties中使用此配置
connector.name=hive-hadoop2
hive.metastore.uri=thrift://localhost:9083我可以运行这样的查询
presto:default> select * from my_table;
Query <query id> failed: line 1:15: Table s3.default.my_table does not exist(该表不存在,但它似乎能够正确地连接到亚稳态;如果不启动亚稳态,我会得到一个完全不同的错误)。我还在9083端口看到亚稳态。
然而,如果我试图运行Beeline,我会得到:
beeline> !connect jdbc:hive2://localhost:9083
Connecting to jdbc:hive2://localhost:9083
Enter username for jdbc:hive2://localhost:9083: [empty]
Enter password for jdbc:hive2://localhost:9083: [empty]
20/10/01 14:40:21 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:9083
Unexpected end of file when reading from HS2 server. The root cause might be too many concurrent connections. Please ask the administrator to check the number of active connections, and adjust hive.server2.thrift.max.worker.threads if applicable.
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:9083: null (state=08S01,code=0)即使我停止Presto,也会发生这种情况,在这种情况下,应该没有活动连接。我还将hive.server2.thrift.max.worker.threads设置为200。
我不知道该尝试什么,也不知道从哪里看,任何建议都将不胜感激。
发布于 2020-10-01 20:24:28
Beeline与HiveServer2 (通常在端口10000上运行)进行对话,这是一个独立于HiveServer2的服务(通常运行在端口9083上)。
https://stackoverflow.com/questions/64157860
复制相似问题