Sqoop Full library Import data hive

Source: Internet
Author: User
Tags sqoop

1, the whole library import

Sqoop import-all-tables--connect jdbc:mysql://ip:3306/dbname--username user--password password--hive-database ABC- M--create-hive-table--hive-import--hive-overwrite

Import-all-tables: Import All Tables

--connect: URL address of the connection

--username:mysql User Name

--password:mysql Password

--hive-database: Importing a database into hive

-M: Specify several map tasks, if there is no primary key, there can only be one map for example:-M 1

--create-hive-table: Create a table, if you do not create a table, there is no table in hive.

--hive-import: Importing data into hive

--hive-overwrite: Overwrite Import


Sqoop Full library Import data hive

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.