2016-07-25 42 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

感謝