hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Sqoop --split by options
Date Wed, 06 May 2015 23:27:39 GMT
Have you asked this on sqoop mailing list ?

http://sqoop.apache.org/mail-lists.html

On Wed, May 6, 2015 at 1:56 PM, Kumar Jayapal <kjayapal17@gmail.com> wrote:

> Hello All,
>
> Can I use  split-by  option with multiple keys  to import the data ?
>
> please help and suggest me any link.
>
> sqoop import \
> --connect jdbc:mysql://mysql.example.com/sqoop \
> --username sqoop \
> --password sqoop \
> --query 'SELECT normcities.id, \
> countries.country, \
> normcities.city \
> FROM normcities \
> JOIN countries USING(country_id) \
> WHERE $CONDITIONS' \
> --split-by id \
> --target-dir cities
>
>
>
>
>
>
> Thanks
> Jay
>

Mime
View raw message