Export records from mysql to hdfs

Source: Internet
Author: User
Tags sqoop

Export records from mysql to hdfs

01 ConnectURL = jdbc: mysql: // localhost: 3306/user_action0203UserName = root0405PassWord = 1234560607 OutputPath =/hdfs/recommend/user_action/login = watch_record1011Columns = id, uid, mid, handler = 'sqoop job list | grep import _ watch_record '1516 # Check whether the import _ watch_record job has been created. If not, create 1718if [$ IfJobCreated = ''] then1920sqoop job import _ watch_record/2122 -- create -- import/2324 -- connect $ ConnectURL/2526 -- username $ UserName/2728 -- password $ PassWord/2930 -- target-dir $ OutputPath/3132 -- m 1/3334 -- table $ TableName/3536-columns $ Columns/3738 -- incremental append/3940 -- check-column id/4142 -- last-value 04344fi4546 4748 sqoop job -- exec import _ watch_record

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.