# aliyun-odps-flume-plugin **Repository Path**: mirrors_aliyun/aliyun-odps-flume-plugin ## Basic Information - **Project Name**: aliyun-odps-flume-plugin - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Moved to aliyun/aliyun-maxcompute-data-collectors: https://github.com/aliyun/aliyun-maxcompute-data-collectors # Odps Sink Plugin for Apache Flume [![Build Status](https://travis-ci.org/aliyun/aliyun-odps-flume-plugin.svg?branch=master)](https://travis-ci.org/aliyun/aliyun-odps-flume-plugin) --- The Odps sink streams events data into a datahub topic. It has the following features: - Map structured data to corresponding columns in the datahub topic. - 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 [(click here)](https://yq.aliyun.com/articles/66112).** ## 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](https://flume.apache.org/index.html)*) ### Clone and Build the Package Clone the project from gitlab: ``` $ git clone git@github.com: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 **aliyun-odps-flume-plugin/target/flume-datahub-sink-x.x.x.tar.gz**. ### Use the Sink in Flume ``` $ tar zxvf flume-datahub-sink-x.x.x.tar.gz $ ls flume-datahub-sink lib libext ``` Move the plugin flume-datahub-sink 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 flume-datahub-sink {YOUR_FLUME_DIRECTORY}/plugins.d/ ``` Optionally, you can check if the plugin is already in the directory: ``` $ ls {YOUR_FLUME_DIRECTORY}/plugins.d flume-datahub-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.datahub.flume.sink.DatahubSink**. Details about the configure paramters of the Datahub sink are listed in [Sink Paramters](http://github.com/aliyun/aliyun-odps-flume-plugin/wiki/sink-parameter). ## Tutorial --- Following are some examples that use Flume along with this plugin to upload structured log data to Datahub topic. 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 Datahub. - [Basic example](http://github.com/aliyun/aliyun-odps-flume-plugin/wiki/basic-example) ## Useful Links --- - [Flume User Guide](https://flume.apache.org/FlumeUserGuide.html) ## Authors && Contributors --- - [Ouyang Zhe](https://github.com/oyz) - [Yang Hongbo](https://github.com/hongbosoftware) - [Tian Li](https://github.com/tianliplus) - [Li Ruibo](https://github.com/lyman) ## License --- licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)