Giter VIP home page Giter VIP logo

dive's Introduction

dive

dive is my hive-like project. It accept DML and DDL base on SQL. It runs data processing on hadoop.

  • current working

See issues https://github.com/silentdai/dive/issues

  • Milestone 0.1

  • SQL input: support natural join, predicate, group by and projection.

  • Data processing: run N + X map/reduce jobs on each SELECT. N is the 2-way join, X is the aggregation or projection.

  • History

This idea origins from the final project of database course. I need practise of implementing SQL and map-reduce.

The original repository is github.com/silentdai/mapred_jobs. As dive grows to more than 4,000 lines, it should keep indpendent of other experimental code.

dive's People

Contributors

hongsenhe avatar lambdai avatar luangong avatar yjtxgt276 avatar

Watchers

 avatar  avatar

dive's Issues

investigation on tez

Current: N+X map-reduce jobs. Each job write result on HDFS. Only the last result is needed.

Possible steps:

  • read the book of yarn
  • write example application master
  • write example tez application
  • dive on tez

Create Operator Tree

dive doesn't have execute plan, only generate by hand-written plan.
If operator tree is constructed, some works can be started:

  • sub-query(SelectJob do not support sub-select job)
  • optimization such as push-down projection and selection

Use Row as the Key/Value

Current: the serialization format of Row is BytesWritable. Each time dive need to read or write, dive create a new byte array. A possible solution is to create instance from DataInput. (Write to output is easy, because dive should not write schema in it)

Possible Solution
Rewrite the Mapper/Reducer or upper task generator
As long as we set-up the schema before de-serializing the Row, we can use Row#read(in)
Maybe by rewrite the task generator
See http://avro.apache.org/docs/1.7.6/mr.html
'''
AvroJob.setInputSchema(conf, User.getClassSchema());
'''

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.