xuejianbest

spark读取hdfs上面的文件:

var textIn = sc.textFile("hdfs://localhost:9000/user/root/text.in")

保存文件到hdsf上:

textIn.map((_, 2)).saveAsTextFile("hdfs://localhost:9000/user/root/outdir")

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2021-11-21
  • 2021-11-18
  • 2022-03-06
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-06-19
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案