Problems with importing tables from hive to MySQL using Sqoop

Source: Internet
Author: User
Tags sqoop

The reason for this error is that a delimiter error is used between table fields in the specified hive for Sqoop read parsing to be incorrect. If the result of the MapReduce operation Rollup is performed by hive, the default delimiter is ' \001 ', otherwise the delimiter should be ' \ t ' if imported from an HDFs file. Here I am the result of hive performing the MapReduce analysis rollup, so the default separation is ' \001 '. The Sqoop command modifies the following, specifying the delimiter:

[Email protected] ~]$ sqoop-export--connect jdbc:mysql://secondmgt:3306/transport--username hive--password Hive --table jtxx--export-dir/hive/warehouse/hive.db/temptrans--input-fields-terminated-by ' \001 ';

For other questions see: http://blog.csdn.net/niityzu/article/details/45190787

Problems with importing tables from hive to MySQL using Sqoop

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.