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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -