Could someone please be so kind and tell me how to adapt the hdfs URIs in the following code so that they work against my local spark 'cluster'?
var lines = sparkContext.TextFile(@"hdfs://path/to/input.txt");
// some more code
wordCounts.SaveAsTextFile(@"hdfs://path/to/wordcount.txt");
You can just define path location config parameter will get setup on sparkcontext so no need to add hdfs just like below should be fine to run application in yarn mode
or you can to explicitly define hdfs location as below
you can also define number of partitions which is optional