sqoop导入数据到hive这个sqoop语句怎么写啊??以前都是一个host的
oracle的url是这个样子的hhhhbs = (DESCRIPTION =(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.1.10)(PORT =2345))
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.1.11)(PORT = 2345))
)
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVICE_NAME = key)
(SERVER = DEDICATED)
)
)
sqoop import –connect jdbc:mysql://localhost:3306/zxtest –username
root –password 123456 –table sqoop_test –hive-import –hive-table
s_test -m 1
可以参考:
Sqoop详细介绍包括:sqoop命令,原理,流程 本帖最后由 hyj 于 2013-12-25 20:06 编辑
具体sqoop 可以这样写:
sqoop import -connect jdbc:oracle:thin:@192.168.1.2:1521:YONYOU -username SCOTT -password tiger --table EMP --hive-import -m 1
可参考sqoop导入Oracle数据到HIVE总结
howtodown 发表于 2013-12-25 19:55
sqoop import –connect jdbc:mysql://localhost:3306/zxtest –username
root –password 123456 –table ...
已经搞定!!谢谢!
页:
[1]