Coder Social home page Coder Social logo

data_manage1's Introduction

数据管理项目

hive-udf

此模块为分词的hive udf,输入string字段即可产出分词结果 hanlp.properties可以配置自定义路径,resources文件夹下有词库,可以添加,不过要重新打包上传。 打包方法

mvn clean package -Pprod -Dmaven.test.skip=true

其中-Pprod表示用生产环境配置,配置文件路径具体可看maven的pom文件

udf使用方法

set mapred.child.java.opts = -Xmx1024m;
ADD JAR /home/hadoop/yulei/jar/hive-udf-1.0.jar;
CREATE TEMPORARY FUNCTION seg AS 'com.mobduos.bigdata.hive.udf.HanlpSegUDF';
select aweme_id, c_text, seg(c_text) as tokens 
from rlog_douyin_comment

stat

此模块为数据脚本, 调度入口为manual_schedule.sh

建表语句

/stat/tables/hive_tables.sql

表前缀解释

rlog 为原始日志,用的hive外部表,映射到cos上的具体路径 log 为落地到hdfs的日志 base 表是清洗过的全量信息 stat 表为按天统计的数据,理论上出报表从stat前缀表出

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.