09 2019 档案

摘要:一、全表查询和特定列查询 1、全表查询: hive (db_test)> select * from dept;OKdept.deptno dept.dname dept.loc10 ACCOUNTING 170020 RESEARCH 180030 SALES 190040 OPERATIONS 阅读全文
posted @ 2019-09-30 13:27 newtest00 阅读(951) 评论(0) 推荐(0)
摘要:1、分区表管理 1.1、创建分区表 hive (db_test)> create table dept_partition(deptno int, dname string, loc string) > partitioned by(month string) > row format delimi 阅读全文
posted @ 2019-09-14 17:05 newtest00 阅读(468) 评论(0) 推荐(0)
摘要:1、在hive中显示当前数据库的名字和表头的信息,需要在$HIVE_HOME/conf目录下的hive-site.xml文件中添加如下内容: <property> <name>hive.cli.print.header</name> <value>true</value> </property> < 阅读全文
posted @ 2019-09-11 17:02 newtest00 阅读(481) 评论(0) 推荐(0)