Spark: how to use SparkContext.textFile for local file system

后端 未结 6 1647
太阳男子
太阳男子 2020-12-06 01:36

I\'m just getting started using Apache Spark (in Scala, but the language is irrelevant). I\'m using standalone mode and I\'ll want to process a text file f

6条回答
  •  情话喂你
    2020-12-06 02:04

    From Spark's FAQ page - If you don't use Hadoop/HDFS, "if you run on a cluster, you will need some form of shared file system (for example, NFS mounted at the same path on each node). If you have this type of filesystem, you can just deploy Spark in standalone mode."

    https://spark.apache.org/faq.html

提交回复
热议问题