2016-07-25 33 views
0

我是Apache drill的新手。在为Apache配置单元创建存储插件时出现错误。我尝试了两种方法。以下是配置。无法在Apache钻取中为配置单元创建存储插件

1.首先方法:

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

2.Second方法:

 { 
      "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组件和两个钻和hive2安装在同一台机器。

对于这两个我正在错误的GUI和

Please retry: error (unable to create/ update storage) 

的情况下,请帮我在提前解决same.Thanks!

+0

你有没有发现在'drillbit.log'任何东西,在''drillbit.out' <钻目录>/log'时错误在GUI弹出?你是否清楚你的两种方法?首先,您将蜂巢式Metastore作为单独的服务(_outside hive_)运行,并且在第二种方式中,元数据嵌入了蜂巢。 –

+0

不,没有用drillbit.log或out生成的文件。我也在钻取目录中进行了验证。实际上,我想访问蜂房Metastore中存在的所有数据库和表,这意味着我想作为服务运行,尽管我的理解是正确的。 – Avinash

回答

0

我可以通过第一种方法进行连接,即Hive Remote Metastore Connection。

下面是配置:

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

另外,还要确保蜂巢metastore启动并running.It可以在hive-site.xml使用下面的命令

hive -- service metastore &. 

而且参数hive.metastore.uris启动应更新为thrift://localhost:9083

感谢