Giter VIP home page Giter VIP logo

hive-pro's Introduction

hive-pro

this is a project for hive

项目需求: 需求:统计指定时间内,各个区域下最热门(top N)的产品/商品/套餐

实现步骤:

1:在mysql新建两张表,一张是city,一张是product_info,并把数据导入进去
2: 把Mysql的这两张表导入到hive,详细见 load_hive.sh
3:在proudct_info表里一个字段是json,需要编写hive udf来解析
 4:对这三张表联合查询sql,来统计结果
    1:点击访问时间转换成日期格式:to_date(access_time)
    2: 用row_number() over来组内排序选择top 3
  5: 导出结果到mysql 

hive-pro's People

Contributors

xbyang18 avatar

Watchers

 avatar  avatar

Forkers

yzjg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.