环境: CentOS 5.7, CDH 4.3
1. 首先将ojdbc.jar文件拷贝到/u01/cloudera/parcels/CDH/lib/sqoop/lib目录下
2. 启动命令:
sqoop export --connect jdbc:oracle:thin:@xxx:1521:biprod --username sqoop_user --password sqoop_user --table OS_ZHIXIN_CHG --export-dir /tmp/zhixin_chg/20140911/20140911charge.zhixin2.log
1. 首先将ojdbc.jar文件拷贝到/u01/cloudera/parcels/CDH/lib/sqoop/lib目录下
2. 启动命令:
sqoop export --connect jdbc:oracle:thin:@xxx:1521:biprod --username sqoop_user --password sqoop_user --table OS_ZHIXIN_CHG --export-dir /tmp/zhixin_chg/20140911/20140911charge.zhixin2.log
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16582684/viewspace-1269929/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16582684/viewspace-1269929/