./bin/sparkR --packages com.databricks:spark-csv_2.10:1.3.0 --master yarn


hdfs://master:9000/tmp/demo.cvs 替换你的hdfs路径
>sc = sparkR.init(master = "yarn″, appName="SparkR")
>sqlContext = sparkRSQL.init(sc)
>demo = read.df(sqlContext,'hdfs://master:9000/tmp/demo.cvs',source ='com.databricks.spark.csv')
>head(demo)

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2021-11-23
  • 2021-11-23
  • 2021-12-26
  • 2021-04-09
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-01-22
  • 2021-12-03
相关资源
相似解决方案