sqoop将关系型数据库的表导入hive中
1、sqoop 將關(guān)系型數(shù)據(jù)庫(kù)的數(shù)據(jù)導(dǎo)入hive的參數(shù)說(shuō)明:
2、 將關(guān)系型的數(shù)據(jù)庫(kù)中的表數(shù)據(jù)導(dǎo)入到hive的表中
sqoop import --connect jdbc:oracle:thin:@//192.168.27.235:1521/ORCL --username DATACENTER --password clear
--table DOCUMENT_FINAL --hive-import --hive-overwrite
--create-hive-table? --hive-table databasename.document_final
說(shuō)明:
可以在 hive 的表名前面指定數(shù)據(jù)庫(kù)名稱,如databasename.document_final
可以通過(guò)?--create-hive-table?創(chuàng)建表,如果表已經(jīng)存在則會(huì)執(zhí)行失敗
3、將關(guān)系型的數(shù)據(jù)庫(kù)的表結(jié)構(gòu)導(dǎo)入到hive中
sqoop create-hive-table --connect jdbc:oracle:thin:@//192.168.27.235:1521/ORCL --username DATACENTER --password clear --table DOCUMENT_FINAL
轉(zhuǎn)載于:https://www.cnblogs.com/ljy2013/p/4872503.html
總結(jié)
以上是生活随笔為你收集整理的sqoop将关系型数据库的表导入hive中的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 电脑重装系统u盘版怎么下载 电脑重装系统
- 下一篇: Get SQL String From