mysql - Sqoop import: Specify `select` expressions in a separate file? -
when importing data mysql hive need normalize several text fields containing phone numbers. requires quite complex logic hard express in sqoop command line single sql replace function. possible specify sql select expressions in separate file , refer command line?
thanks!
you can try:
$ sqoop --options-file /users/homer/work/option.txt - your option.txt as:
# options file sqoop import # # specifies tool being invoked import # connect parameter , value --connect jdbc:mysql://localhost/db # username parameter , value --username foo ## query --query "select * table \$conditions"
Comments
Post a Comment