Mongo数据导入Hive
2020-01-22 本文已影响0人
大数据ZRL
CREATE EXTERNAL TABLE temp.dailyStats_test7
(
email string,
url string,
count string
)
STORED BY 'com.mongodb.hadoop.hive.MongoStorageHandler'
TBLPROPERTIES('mongo.uri'='mongodb://192.168.12.13:99999/logDB.dailyStats');