I have a table "base" imported from RDMS having columns:
station_num int(11), zipcode varchar(255), city varchar(255), state varchar(255)
Now I want to export just two columns from table "base" i.e. state
and station_num
in the same order from this table using sqoop as my output table "baseoutput" has columns: stat varchar(255), num int(11)
Command which I used:
sqoop export --connect jdbc:mysql://localhost/loudacre --username training -P --table base --export-dir /user/trail/basestations --columns num,stat
I'm not getting the expected result.