摘要: 第六章 查询 查询语句语法: SELECT [ALL | DISTINCT] select_expr, select_expr, ... FROM table_reference [WHERE where_condition] [GROUP BY col_list] [ORDER BY col_li 阅读全文
posted @ 2019-08-11 22:58 希音 阅读(163) 评论(0) 推荐(0) 编辑
摘要: DML数据操作 5.1 数据导入 5.1.1 向表中装载数据(Load) 1.语法 hive load data [local] inpath '/opt/module/datas/studnets.txt' overwrite | into table student [partition(par 阅读全文
posted @ 2019-08-11 14:45 希音 阅读(126) 评论(0) 推荐(0) 编辑
摘要: DDL数据定义 创建数据库 1)创建一个数据库,数据库在HDFS上的默认存储路径是/user/hive/warehouse/ .db。 2)避免要创建的数据库已经存在错误,增加if not exists判断。(标准写法) create database if not exists db_hive; 阅读全文
posted @ 2019-08-11 14:08 希音 阅读(158) 评论(0) 推荐(0) 编辑