GithubHelp home page GithubHelp logo

mortar-repos / msgpack-hadoop-pig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from msgpack/msgpack-hadoop

0.0 2.0 0.0 6.43 MB

MessagePack-Hadoop integration provides an efficient schema-free data representation for Hadoop and Pig.

Home Page: http://msgpack.org/

License: Apache License 2.0

Java 100.00%

msgpack-hadoop-pig's Introduction

MessagePack-Hadoop Integration

This package contains the bridge layer between MessagePack (http://msgpack.org) and Hadoop (http://hadoop.apache.org/) families.

This enables you to run MR jobs on the MessagePack-formatted data, and also enables you to load MessagePack data with Apache Pig.

Example Pig Usage

Load [1, "aardvark"] or {"i": 1, "s": "aardvark"} ==> (1,aardvark)

data = LOAD 'my_data.mpack' 
       USING org.msgpack.hadoop.pig.MessagePackLoader('i: int, s: chararray');

Load [1, "aardvark"] ==> {(1), (aardvark)}

data = LOAD 'my_data.mpack' 
       USING org.msgpack.hadoop.pig.MessagePackLoader('b: {t: (b: bytearray)}');

Load {"i": 1, "s": "aardvark"} ==> {[i#1,s#aardvark]}

data = LOAD 'my_data.mpack' 
       USING org.msgpack.hadoop.pig.MessagePackLoader('m: [bytearray]');
-- or  USING org.msgpack.hadoop.pig.MessagePackLoader()
-- to infer schema, including nested schemas

Load {"i": 1, "a": [1,2,3]} ==> (1,{(1),(2),(3)})

data = LOAD 'my_data.mpack' 
       USING org.msgpack.hadoop.pig.MessagePackLoader('i: int, a: {t: (j: int)}');

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.