sqoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Subba Reddy <su...@3loq.com>
Subject sqoop import: dumping the header
Date Wed, 08 Mar 2017 12:00:56 GMT
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

Mime
View raw message