Sean, I saw some JIRA tickets and looks like this is still an open bug (rather than an improvement as marked in JIRA).
https://issues.apache.org/jira/browse/SPARK-15893 https://issues.apache.org/jira/browse/SPARK-15899 I am experimenting, but do you know of any solution on top of your head On Fri, Jul 29, 2016 at 12:06 AM, Rohit Chaddha <rohitchaddha1...@gmail.com> wrote: > I am simply trying to do > session.read().json("file:///C:/data/a.json"); > > in 2.0.0-preview it was working fine with > sqlContext.read().json("C:/data/a.json"); > > > -Rohit > > On Fri, Jul 29, 2016 at 12:03 AM, Sean Owen <so...@cloudera.com> wrote: > >> Hm, file:///C:/... doesn't work? that should certainly be an absolute >> URI with an absolute path. What exactly is your input value for this >> property? >> >> On Thu, Jul 28, 2016 at 11:28 AM, Rohit Chaddha >> <rohitchaddha1...@gmail.com> wrote: >> > Hello Sean, >> > >> > I have tried both file:/ and file:/// >> > Bit it does not work and give the same error >> > >> > -Rohit >> > >> > >> > >> > On Thu, Jul 28, 2016 at 11:51 PM, Sean Owen <so...@cloudera.com> wrote: >> >> >> >> IIRC that was fixed, in that this is actually an invalid URI. Use >> >> file:/C:/... I think. >> >> >> >> On Thu, Jul 28, 2016 at 10:47 AM, Rohit Chaddha >> >> <rohitchaddha1...@gmail.com> wrote: >> >> > I upgraded from 2.0.0-preview to 2.0.0 >> >> > and I started getting the following error >> >> > >> >> > Caused by: java.net.URISyntaxException: Relative path in absolute >> URI: >> >> > file:C:/ibm/spark-warehouse >> >> > >> >> > Any ideas how to fix this >> >> > >> >> > -Rohit >> > >> > >> > >