Giter Site home page Giter Site logo

zeaper123 / metadata-hive-hook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bill-cc/metadata-hive-hook

0.0 0.0 0.0 43 KB

Hive hook, obtain task information from Hive, fetch input/output tables and lineage information from HSQL.

License: Apache License 2.0

Java 100.00%

metadata-hive-hook's Introduction

介绍

自定义Hive Hook(钩子函数),继承自org.apache.hadoop.hive.ql.hooks.ExecuteWithHookContext,通过拦截Hive执行引擎执行后返回给用户前的调用,获取任务执行的相关信息,并且分析用户执行的SQL语句,获取元数据信息和数据血缘关系,支持字段级别的血缘关系。信息收集后会发送至Kafka消息集群。

环境说明

支持版本

Hive 1.*

部署

  1. 编译

    在项目根目录下执行mavne命令:

    mvn clean package

  2. 部署

    将编译后的jar包放到集群中hive server所在机器的${HIVE_HOME}/auxlib目录下,

    例如:“/opt/cloudera/parcels/CDH/lib/hive/auxlib”

    如果auxlib目录不存在,在${HIVE_HOME}下新建auxlib目录。

  3. 配置

    hive-site.xml中添加hook模块 hive.exec.post.hooks org.billcc.hive.hook.HiveHook

  4. Kafka配置

    配置kafka-application.properties属性文件,如下:

    ######### Kafka Configs ######### bootstrap.servers=ip1:port,ip2:port,ip3:port auto.commit.interval.ms=100 enable.auto.commit=false session.timeout.ms=30000

    可以将文件提取到和jar包同级目录中,优先加载同级外部配置文件。

metadata-hive-hook's People

Contributors

bill-cc 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.