1,通过hadoop -put的方式

hadoop fs -put student.txt /user/hive/warehouse/tuoming.db/temp_student/

Hive导入数据的3种方式

查看

Hive导入数据的3种方式

2,在hive中通过 load data local inpath 从本地服务器导入

Hive导入数据的3种方式

load data local inpath '/home/tuoming/test/student1.txt' into table temp_student; 

Hive导入数据的3种方式

3,在hive中通过 load data inpath 从hdfs导入

Hive导入数据的3种方式

load data inpath 'user/tuoming/test/tt/student2.txt' into table temp_student; 

Hive导入数据的3种方式


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-09-22
  • 2022-12-23
  • 2021-05-25
  • 2021-07-23
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-05-23
  • 2021-12-04
相关资源
相似解决方案