hadoop - Sqoop export update only specified columns -



hadoop - Sqoop export update only specified columns -

as far know, can update database using "--udate-key" argument. updates whole record key. can either insert or update "--update-mode allowinsert" or "--update-mode updateonly".

for illustration have file consists of primary key , column values have update in table has other columns too. question is, can update particular column without updating other columns in table? must specify columns --update-key argument right? there solution or work around this?

yes. using "--update-key" , "columns" arguments. example: $ sqoop export --connect jdbc:mysql://localhost/tgl --username root --password root --table staging --export-dir /sqoop/db1_result -m 1 -input-fields-terminated-by "," note: field specified in update-key must in columns argument

hadoop sqoop2

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -