hadoop hive 基本操作命令

查询列表 hadoop fs -ls -R /

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

创建目录 hadoop fs -mkdir /mobile

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

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


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

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



hive-------------------------------------------------

show tables like '*name*';

desc table_name;

show partitions table_name;

你可能感兴趣的:(hadoop,hive)