如何解决AWS Glue 作为 Hive 数据源
我已经阅读过 AWS Glue 是一个与 Hive 兼容的数据存储,但我还没有找到如何使用 AWS Glue 作为 JDBC 数据源。
我想使用 AWS Glue Catalog 作为我的报告来源,如 Hive 文档所示 - https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-ConnectionURLforRemoteorEmbeddedMode
Connection URL for Remote or Embedded Mode
The JDBC connection URL format has the prefix jdbc:hive2:// and the Driver class is org.apache.hive.jdbc.HiveDriver. Note that this is different from the old HiveServer.
For a remote server,the URL format is jdbc:hive2://<host>:<port>/<db>;initFile=<file> (default port for HiveServer2 is 10000).
For an embedded server,the URL format is jdbc:hive2:///;initFile=<file> (no host or port).
当我在 AWS Glue 中编辑数据库时,我似乎可以为客户端设置一个位置 - 但我不确定在此处放置什么,并且没有看到任何有关其工作原理的文档。
有什么想法吗?
解决方法
AWS Glue 是 Hive 元数据存储,而不是 Hive 服务器。
不过,Hive 服务器可以使用 Glue 作为元数据存储。
https://aws.amazon.com/emr/features/hive/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。