Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #-*-encoding:utf-8 -*-
- from subprocess import call
- #默认导入到default
- call("sqoop import --connect jdbc:mysql://10.0.2.248:3306/test?zeroDateTimeBehavior=CONVERT_TO_NULL --username root --password hive123 --table op --hive-import --hive-overwrite -m 2",shell=True)
- #指定hive的库
- call("sqoop import --connect jdbc:mysql://10.0.2.248:3306/test?zeroDateTimeBehavior=CONVERT_TO_NULL --username root --password hive123 --table op --hive-import --hive-overwrite --hive-database bigdata -m 2",shell=True)
Add Comment
Please, Sign In to add comment