You can't, sparkcontext is a singleton object. You have to use hadoop library or aws client to read files on s3.
-- Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/ --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscr...@spark.apache.org