0
我正在使用hive與鑽取。在Drill-Hive的情況下動態模式發現未完成
存儲插件信息:
{
"type": "hive",
"enabled": true,
"configProps": {
"hive.metastore.uris": "",
"javax.jdo.option.ConnectionURL": "jdbc:mysql://localhost:3306/metastore_hive",
"javax.jdo.option.ConnectionDriverName": "com.mysql.jdbc.Driver",
"javax.jdo.option.ConnectionUserName": "root",
"javax.jdo.option.ConnectionPassword": "root",
"hive.metastore.warehouse.dir": "/user/hive/warehouse",
"fs.default.name": "file:///",
"hive.metastore.sasl.enabled": "false"
}
}
它工作正常查詢和所有。
然後,我想檢查它是否自動發現蜂巢中新創建的表。
我在嵌入模式開始鑽和使用
use hive.testDB;
這裏testDB
是蜂巢一個數據庫表t1
& t2
用於蜂巢特定的數據庫。然後我問:
show tables;
它給了我的表名
t1
t2
我在蜂巢創建表t3
又在鑽解僱show tables;
。 它仍然顯示t1 t2
。 5-10分鐘後,我再次發射了show tables;
,它顯示t1 t2 t3
。
我認爲應該在配置單元中添加t3
後立即顯示t3
。
這種行爲的原因是什麼?以及鑽頭如何在內部處理?