1,通过hadoop -put的方式
hadoop fs -put student.txt /user/hive/warehouse/tuoming.db/temp_student/
查看
2,在hive中通过 load data local inpath 从本地服务器导入
load data local inpath '/home/tuoming/test/student1.txt' into table temp_student;
3,在hive中通过 load data inpath 从hdfs导入
load data inpath 'user/tuoming/test/tt/student2.txt' into table temp_student;