This topic contains 0 replies, has 1 voice, and was last updated by  Shivraj 3 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1197

    Shivraj
    Participant

    Here is the below sqoop command used to import the data using –query option.

    sqoop import –connect jdbc:mysql://ipaddress/dbname –query ‘select * from employee where $CONDITIONS’ –username root -P –target-dir /outputFolder -m 1

    Your query must include the token ‘where $CONDITIONS’ which each Sqoop process will replace with a unique condition expression.

    Cheers,
    Shivraj

Viewing 1 post (of 1 total)

The forum ‘General Discussion’ is closed to new topics and replies.