hadoop hive 基本操做命令

查询列表 hadoop fs -ls -R /oop

删除文件 hadoop fs -rm -r /user
spa

建立目录 hadoop fs -mkdir /mobile
orm

上传文件 hadoop fs -put /hadoop/hr06_11_05_2013.log /mobile
hadoop

查看文件 hadoop fs -cat /user/hive/warehouse/student
string


建立表 create table STUDENT1(name string) row format delimited fields terminated by ',';it

导入本地数据 load data local inpath 'D:/Users/bin/student1.txt' overwrite into table student1;io



hive-------------------------------------------------table

show tables like '*name*';form

desc table_name;mobile

show partitions table_name;

相关文章
相关标签/搜索