随笔分类 -  HIVE、HBASE等

大数据平台的数据库、数据仓库
摘要:Hive复杂数据类型使用 摘抄自http://www.cnblogs.com/end/archive/2013/01/17/2863884.html Hive提供了复合数据类型 Structs: structs内部的数据通过dot(.)来存取,例如,表中一列c的数据类型为c{a int; b int 阅读全文
posted @ 2017-08-18 18:19 AlgorithmInit 阅读(130) 评论(0) 推荐(0)
摘要:Hive知识 一、建表语法 CREATE [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITIONED BY (col_name data_type [COMMENT col_comment],... 阅读全文
posted @ 2017-08-18 12:02 AlgorithmInit 阅读(647) 评论(0) 推荐(0)
摘要:HIVE的几种文件格式1、TEXTFILE 文本格式,默认格式,数据不做压缩,磁盘开销大,数据解析开销大 对应hive API为org.apache.hadoop.mapred.TextInputFormat和org.apache.hive.ql.io.HiveIgnoreKeyTextOutput 阅读全文
posted @ 2017-08-17 17:05 AlgorithmInit 阅读(3626) 评论(0) 推荐(0)
摘要:Hive数据类型: 原始数据类型: Integers: tinyint 1位整型 smallint 2位整型 int 4位整型 bigint 8位整型 布尔类型: boolean true/false 浮点: float 单精度 double 双精度 定点数: decimal 指定范围和小数点位 字 阅读全文
posted @ 2017-08-17 11:24 AlgorithmInit 阅读(188) 评论(0) 推荐(0)
摘要:Hbase表删除 阅读全文
posted @ 2016-08-23 17:32 AlgorithmInit 阅读(669) 评论(1) 推荐(0)