-
显示数据库名称以及字段名称
<!-- 是否在当前客户端中显示查询出来的数据的字段名称 --> <property> <name>hive.cli.print.header</name> <value>true</value> <description>Whether to print the names of the columns in query output.</description> </property> <!-- 是否在当前客户端中显示当前所在数据库名称 --> <property> <name>hive.cli.print.current.db</name> <value>true</value> <description>Whether to include the current database in the Hive prompt.</description> </property>
-
创建数据库
hive> create database staff;
-
创建表操作
hive> create table t1(eid int, name string, sex string) row format delimited fields terminated by '\t';
-
导入数据
从本地导入
load data local inpath ‘文件路径’ into table;
从HDFS系统导入
大数据——Hive(基础操作)
猜你喜欢
转载自blog.csdn.net/qq_40395687/article/details/88131082
今日推荐
周排行