val df = sqlContext.load("/opt/modules/spark1.3.1/examples/src/main/resources/people.json","json")
df.select("name","age").save("/opt/test/namesAndAges.json","json")
//或者 df.select("name","age").save("/opt/test/namesAndAges.parquet","parquet")

  

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2021-11-13
  • 2021-07-28
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案