查詢列表 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;