-
In Spark, the method textFile() takes an URI for the file (either a local path or a hdfs:// ). You could run this method on a single file or a directory which may contains more than one file by calling :
12val rdfFile = sc.textFile("hdfs://.../yourdirectory/yourfile.nt")val rdfDirectory = sc.textFile("hdfs://.../yourdirectory/")