Forum

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

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

    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)
Reply To: SQOOP – '–query' option to import data from RDBMS
Your information:




cf22

Your Name (required)

Your Email (required)

Subject

Phone No

Your Message

Cart

  • No products in the cart.