ODPS Next Map/reduce Ready

Source: Internet
Author: User

Ali received a call to say practice and match intelligence two choose one, really sad, exercise before the right to active aging.

To summarize ODPs next write map/reduce and make a purchase forecast process.

First of all, the Hadoop input and output is in the form of a table, we need an input table and an output table.

Input table for the supplied T_alibaba_bigdata_user_brand_total_1 output table for your own defined Wc_out

Wc_out need to be defined beforehand. The function of the following instance is to merge the user's actions on the item and record the number of repetitions, creating the Wc_out table structure as:

CREATE TABLE Wc_out (user_id string,brand_id string,type string,visit_datetime string,count bigint);

The Map/recduce program is then written in Eclipse.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvtfrpyw5jagfv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Export project as a jar file. Slightly

Create a resource in ODPs and execute

Execution complete

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvtfrpyw5jagfv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

The next step is to design more complex models for bank predictions.

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

ODPS Next Map/reduce Ready

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.