spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Das <ak...@sigmoidanalytics.com>
Subject Re: Read a HDFS file from Spark using HDFS API
Date Fri, 14 Nov 2014 15:37:12 GMT
like this?

val file = sc.textFile("hdfs://localhost:9000/sigmoid/input.txt")

Thanks
Best Regards

On Fri, Nov 14, 2014 at 9:02 PM, rapelly kartheek <kartheek.mbms@gmail.com>
wrote:

> Hi,
> I am trying to read a HDFS file from Spark "scheduler code". I could find
> how to write hdfs read/writes in java.
>
> But I  need to access hdfs from spark using scala. Can someone please help
> me in this regard.
>

Mime
View raw message