hive相关的命令

Posted on 2019-08-16 18:07  橙子j  阅读(168)  评论(0)    收藏  举报

切换到hdfs用户,或者hive用户

 

先进入到hive的bin文件里面

cd /usr/hdp/3.1.0.0-78/hive/bin
 
./hive
 
最后用sql语句操作
 
创建表:
hive> create table repartition(
    > id int,
    > name char(20),
    > age int,
    > gender char(20));
OK
Time taken: 0.84 seconds