Giter VIP home page Giter VIP logo

iqd-divertor's Introduction

1. Introduction

IQD-divertor is a crawler that crawls the Impala query information from Cloudera Manager. It will store the scrawled information to a prepared Impala table, then provide to relevant analyst for data analysis.

2. Installation

2.1. Dependencies

  • JDK 7
  • Maven( maven>=3.0.0 )
  • Cloudera Manager( cdh>=5.7.2 )
  • Cloudera Impala( >=impala-2.5.0+cdh5.7.2 )

Important: Testing OK on CDH 5.7.2 and 5.12.1, other versions are not guaranteed to be available.

2.2. Install

  • Clone source code and export environment variable.
git clone https://github.com/gridsum/IQD-divertor.git  
cd IQD-divertor  
echo "export IQD_DIVERTOR_HOME=\`pwd\`" >> ~/.bashrc  
  • Create the Impala table in your target database with the sql in the file.

2.3. Configure & Package

  • Edit the IQD-divertor configuration, recommended to modify the configuration items according to the annotations.

  • Import the Hadoop configurations core-site.xml and hdfs-site.xml to project resources dir.

  • Package the project with Maven.

mvn clean package

2.4. Start/Stop daemon

  • Start daemon:
./bin/deamon.sh start
  • Stop daemon:
./bin/deamon.sh stop

3. Tutorials & Documentation

3.1. Principle

The principle is mainly as follows:

  • Firstly, crawl the Impala query information with Cloudera Manager API.
  • Secondly, extract the related fields and write to parquet file.
  • Thirdly, upload the Parquet file to HDFS.
  • Finally, load the Parquet formated data to target Impala table.

3.2. Fields in impala table

See fields.md for details about fields.

4. Communication

[email protected]

5. License

IQD-divertor is licensed under the Apache License 2.0.

iqd-divertor's People

Contributors

pengyuanbo1992 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Slippor.Wu avatar  avatar  avatar novan avatar  avatar somnmos avatar  avatar

Forkers

pengyuanbo1992

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.