第一代:hive 第二代:beeline hdfs存文件 hive执行文件sql
hue:操作HDFS HIVE OOZIE
hue下操作hive建表语句
create table hengan_study.ceshi(
id int comment "id编号",
name string comment "英雄名称",
hp_max int comment "最大生命"
)
row format delimited
fields terminated by "\t"; -- 字段之间的分隔符是teab键
一、仅删除表中数据,保留表结构
hive> truncate table 表名;
二、删除表
hive> drop table if exists 表名;
三、删除库
hive> drop database if exists 库名;