Hi,

We would like to use sqoop to import data from a database as a CSV. But we 
could not find any option that controls whether to print the header or not 
while writing to a CSV.


Query used:

$ sqoop import \

    --connect jdbc:mysql://mysql.example.com/sqoop \

    --username sqoop \

    --password sqoop \

    --query 'SELECT * from cities' \

    --target-dir cities


Could you please help us in dumping the header too? Because without the header, 
the dumped data would not be so useful.


Thanks,

subba

Reply via email to