You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Shuai Zheng <sz...@gmail.com> on 2014/12/21 13:04:53 UTC
Network file input cannot be recognized?
Hi,
I am running a code which takes a network file (not HDFS) location as
input. But sc.textFile("\\\\networklocation\\README.md") can't recognize
the network location start with "\\\\" as a valid location, because it only
accept HDFS and local like file name format?
Anyone has idea how can I use a network file location as input for create
RDD?
Regards,
Shuai
Re: Network file input cannot be recognized?
Posted by Akhil Das <ak...@sigmoidanalytics.com>.
Did you try?
sc.textFile("file:\\\\networklocation\\README.md")
Thanks
Best Regards
On Sun, Dec 21, 2014 at 5:34 PM, Shuai Zheng <sz...@gmail.com> wrote:
> Hi,
>
> I am running a code which takes a network file (not HDFS) location as
> input. But sc.textFile("\\\\networklocation\\README.md") can't recognize
> the network location start with "\\\\" as a valid location, because it only
> accept HDFS and local like file name format?
>
> Anyone has idea how can I use a network file location as input for create
> RDD?
>
> Regards,
>
> Shuai
>