Sqoop imported hive field names from mysql, sqoophive

Source: Internet
Author: User
Tags sqoop

Sqoop imported hive field names from mysql, sqoophive

There are some keyword restrictions in hive, so some field names are available in mysql, but it won't work when it comes to hive.

For example, order must be changed to order1. The following lists some of the field names we found that cannot be used in hive.

Order => order1

Sort => sort1

Reduce => performance1

Cast => cast1

Directory => directory1



How can I not query sqoop data imported to hive tables?

Where do you enter the sqoop import directory? If you enter the command in/usr/sqoop, enter hive in/usr/sqoop and then show tables to view the command.
 
Can hbase imported by sqoop be used directly? Or do I need to see the table in hbase and insert the imported data?

A simple command is enough.

Sqoop import -- jar-file (your jar package) -- class-name (classname) -- connect (mysql instance) -- username (username) -- password (password) -table (table name)-hbase-table (hbase table name)-column-family (familyColumn)-hbase-row-key (hbase rowkey) -- hbase-create-table

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.