Hive programming guide-employees table data definition and programming guide-employees

Source: Internet
Author: User

Hive programming guide-employees table data definition and programming guide-employees

There is an employees table in the hive programming guide. The default Delimiter is complicated and cannot be edited easily (the control character ^ A edited by the General Editor is treated as A string, does not act as a separator ). The collection solution is as follows:

Http://www.myexception.cn/software-architecture-design/1351552.html

Http://blog.csdn.net/lichangzai/article/details/18703971


Remember, the following content is edited in A simple text editor. The separator is not recognized. ^ A ^ B ^ C will be processed as A string, and the delimiter cannot be recognized when importing data in hive, some fields are displayed as null.

John Doe ^ a4240.0 ^ AMary Smith ^ BTodd Jones ^ AFederal Taxes ^ C.2 ^ BStateTaxes ^ C.05 ^ BInsurance ^ C.1 ^ A1 Michigan Ave. ^ BChicago ^ BIL ^ B60600


Mary Smith ^ A80000.0 ^ ABill King ^ AFederal Taxes ^ C.2 ^ BState Taxes ^ C.05 ^ BInsurance ^ C.1 ^ A100 Ontario St. ^ BChicago ^ BIL ^ B60601


Todd Jones ^ A70000.0 ^ AFederalTaxes ^ C.15 ^ BState Taxes ^ C.03 ^ BInsurance ^ C.1 ^ A200 Chicago Ave. ^ BOak Park ^ BIL ^ B60700


Bill King ^ A60000.0 ^ AFederal Taxes ^ C.15 ^ BState Taxes ^ C.03 ^ BInsurance ^ C.1 ^ A300 Obscure Dr. ^ BObscuria ^ BIL ^ B60100


Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.