我是apache drill的新手。在为apache hive创建存储插件时遇到了错误。我尝试了两种方法。下面是配置。
1.第一种方法:
{
"type": "hive",
"enabled": false,
"configProps": {
"hive.metastore.uris": "thrift2:localhost:10000",
"fs.default.name": "hdfs://localhost:9000/",
"hive.metastore.sasl.enabled": "false"
}
}
2.第二种方法:
{
"type": "hive",
"enabled": false,
"configProps": {
"hive.metastore.uris": "",
"javax.jdo.option.ConnectionURL": "jdbc:derby://localhost:1527/metastore_db;create=true",
"hive.metastore.warehouse.dir": "/user/tmp/warehouse/hive",
"fs.default.name": "hdfs://localhost:9000",
"hive.metastore.sasl.enabled": "false"
}
}
我使用的是普通的apache组件,drill和hive2都安装在同一台机器上。
对于这两种情况,我在gui中得到的错误是
Please retry: error (unable to create/ update storage)
请帮助我解决同样的问题。提前谢谢!!
1条答案
按热度按时间uqxowvwt1#
我能够通过第一种方法连接,即hive远程元存储连接。
配置如下:
还要确保配置单元元存储已启动并正在运行
还有参数
hive.metastore.uris
在hive-site.xml
应更新为thrift://localhost:9083
.谢谢