Sqoop Import Loading HBase case

Source: Internet
Author: User
Tags sqoop

Simply write the steps to sqoop the order table into the HBase table.

The following table:

1. Open HBase through the hbase shell.

2. Create an HBase table

Create '  So ','o'

3. Import the data of so table into HBase.

Opt file:

--connect: Database
--username: Database user name
--password: Database Password
--table: Tables that need to be sqoop
--columns: Columns in a table
Table in the--hbase-table:hbase
--column-family: Column Family
--hbase-row-key: Specify Rowkey
Import--ConnectJdbc:mysql://192.168.2.115:3306/Test--usernameRoot--Password123456-m1--null-string"'--Table So--Columns"Date,order_id,user_id, Order_amt,order_id_new "--hbase-table So--column-familyo--Hbase-row-keyOrder_id_new

Execution: Sqoop--options-file./so_hbase.opt

Sqoop Import Loading HBase case

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.