Giter Site home page Giter Site logo

aliyun-odps-flume-plugin's Introduction

ODPS Sink Plugin for Apache Flume


The ODPS sink streams events data into a ODPS table. It has the following features:

  • Map structured data to corresponding columns in the ODPS table.
  • Support partition table, create partition automatically if not exists.
  • Currently only support delimited text data.
  • Highly customizable.
  • Compatible with all the features of Flume, such as fan-in and fan-out flows, contextual routing and backup routes (fail-over) for failed hops.

NOTE: For non-developer users, please goto WIKI (click here).

Getting Started


Requirements

To get started using this plugin, you will need three things:

  1. JDK 1.6 or later (JDK 1.7 recommended)
  2. Apache Maven 3.x
  3. Flume-NG 1.x (Home Page)

Clone and Build the Package

Clone the project from gitlab:

$ git clone [email protected]:aliyun/aliyun-odps-flume-plugin.git

Use maven to build the package:

$ cd aliyun-odps-flume-plugin/
$ mvn clean package -DskipTests

Wait until building success, the plugin will be now in the folder aliyun-odps-flume-plugin/target/odps_sink/.

Use the Sink in Flume

Move the plugin into the plugin directory of Flume (i.e., the folder plugins.d/ under the Flume installation directory). If the plugin directory does not exist, create it at first:

$ mkdir {YOUR_FLUME_DIRECTORY}/plugins.d
$ mv target/odps_sink/ {YOUR_FLUME_DIRECTORY}/plugins.d/

Optionally, you can check if the plugin is already in the directory:

$ ls {YOUR_FLUME_DIRECTORY}/plugins.d
odps_sink

The ODPS sink should be available for Flume now. You can use this sink by set the type of the Flume sink to com.aliyun.odps.flume.sink.OdpsSink. Details about the configure paramters of the ODPS sink are listed in Sink Paramters.

Tutorial


Following are some examples that use Flume along with this plugin to upload structured log data to ODPS table. This tutorial is designed for the ODPS users who had not used Flume before, and will illustrate the basics about how to use Flume to upload streaming data into ODPS.

Useful Links


Authors && Contributors


License


licensed under the Apache License 2.0

aliyun-odps-flume-plugin's People

Contributors

hongbosoftware avatar tianliplus avatar

Watchers

 avatar  avatar

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.