You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by nancy henry <na...@gmail.com> on 2017/02/16 16:54:18 UTC

scala.io.Source.fromFile protocol for hadoop

Hello,



hiveSqlContext.sql(scala.io.Source.fromFile(args(0).toString()).mkString).collect()

I have a file in my local system

and i am spark-submit deploy mode cluster  on hadoop

so args(0) should be on hadoop cluster or local?

what should be the protocol file:///
for hadoop what is the protocol?