Hive学习笔记

1.显示分区

show partitions tables;

2.SHELL里导出文件显示字段

set hive.cli.print.header=true;

3.查看HIVE版本

shell中看jar包的版本,版本就是HIVE的版本

locate */hive/lib/hive*jar

4.显示所有库

show databases;

5.显示所有表格

show tables;

6.显示表字段

desc table_name;

7.显示所有函数

show functions;

8.复制表结构

create table new_table_name like old_table_name;

posted @ 2018-08-04 19:31  俊学之道  阅读(217)  评论(0编辑  收藏  举报