How to load local file in sc.textFile, instead of HDFS

Detection score: 4.5

<p>main" org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/C:/</p>

<p>for     JavaRDD fileRDD2 = sc.textFile("file:///C:/Users/xyz.txt")</p>

<p>what correct syntax to use files from local ? </p>
Posted 11 days ago | reported 11 days ago
Posted by Bhushan (1)

Caught by 4 reasons: