无法在apache drill中为配置单元创建存储插件

pbossiut  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(466)

我是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)

请帮助我解决同样的问题。提前谢谢!!

uqxowvwt

uqxowvwt1#

我能够通过第一种方法连接,即hive远程元存储连接。
配置如下:

{
      "type": "hive",
      "enabled": false,
      "configProps": {
    "hive.metastore.uris": "thrift:localhost:9083",
    "fs.default.name": "hdfs://localhost:9000/",
    "hive.metastore.sasl.enabled": "false"
      }
    }

还要确保配置单元元存储已启动并正在运行

hive -- service metastore &.

还有参数 hive.metastore.urishive-site.xml 应更新为 thrift://localhost:9083 .
谢谢

相关问题