hadoop
007在学算法
拒绝低效率勤奋,保持高效思考
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
向YARN提交自定义任务
自定义YARN任务原创 2022-12-14 11:05:24 · 201 阅读 · 0 评论 -
自定义yarn任务
流程 client ApplicationMaster原创 2021-06-17 12:45:23 · 292 阅读 · 0 评论 -
yarn client 提交任务
yarn运行机制 1. 起yarn client // 1.创建yarn client YarnClientApplication app = yarnClient.createApplication(); // 2.配置 app.getApplicationSubmissionContext().setApplicationName( "truman.ApplicationMaster"); app.getApplicationSubmissionContext().setResource(Resourc原创 2020-09-29 20:41:20 · 417 阅读 · 0 评论 -
hive explode
explode 用法:展开字段,打成一列 drop table test; create temporary table test ( id string, f1 array<string> ) ; insert overwrite table test select 123, array('1', '2', '3'); select id, tag from lateral vi...原创 2020-03-26 13:41:39 · 185 阅读 · 0 评论 -
hive 复杂数据结构
map struct create tempory table zgx_struct( name string, score struct&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;name string, score string&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a原创 2019-01-14 18:29:51 · 791 阅读 · 0 评论 -
hive 创建表
create table create database xxx; create external table if not exists xxx.userkey_sid_rank_expo( userkey string, sid string, rec_time string, rank string, rtoken string, expo string, pv string, durati...原创 2019-01-15 20:28:53 · 417 阅读 · 0 评论 -
Hadoop原理
HDFS https://www.cnblogs.com/laov/p/3434917.html MR YARN转载 2019-03-15 16:38:50 · 215 阅读 · 0 评论 -
hbase入门
用途 基于hdfs的实时db 功能 增删改查原创 2019-04-08 08:46:21 · 119 阅读 · 0 评论 -
hive udf
流程 写java 打jar包 add jar filePath(可本地,可hdfs) create temporary function xxx as “your class” Reference https://blog.csdn.net/Gavin_chun/article/details/78169317原创 2019-04-15 14:43:17 · 173 阅读 · 0 评论 -
hive json
hive 直接上传json数据 建表,建立接收json格式的表 准备json格式数据 // 必须找一个这个jar包,默认没有,可以从网上下载 add jar /xxxl/hive-hcatalog-core-0.14.0.jar; // 建立可以接收json的table create table db.table( name string, age string ) ROW FORMAT ...原创 2019-06-17 09:51:23 · 166 阅读 · 0 评论 -
日志清洗
手动清洗 日志为slf4j日志,info级别 用shell筛选出需要的内容 用python解析成json格式 // grep 提取关键词日志 grep -E "A|B" > result.txt // python 解析 #!bin/python import sys import re import json fileName = sys.argv[1] def read():...原创 2019-06-17 10:05:00 · 640 阅读 · 0 评论 -
storm使用
storm spout 入口,实现读取数据 bolt 出口,实现输出数据 topology 高级汇总,实现封装之前两个,然后提交topology原创 2019-08-12 20:29:23 · 198 阅读 · 0 评论
分享