You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Rohit Chaddha <ro...@gmail.com> on 2016/07/28 17:47:08 UTC

Spark 2.0 -- spark warehouse relative path in absolute URI error

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

Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Rohit Chaddha <ro...@gmail.com>.
After looking at the comments - I am not sure what the proposed fix is ?

On Fri, Jul 29, 2016 at 12:47 AM, Sean Owen <so...@cloudera.com> wrote:

> Ah, right. This wasn't actually resolved. Yeah your input on 15899
> would be welcome. See if the proposed fix helps.
>
> On Thu, Jul 28, 2016 at 11:52 AM, Rohit Chaddha
> <ro...@gmail.com> wrote:
> > 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 <
> rohitchaddha1234@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
> >>> <ro...@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
> >>> >> <ro...@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
> >>> >
> >>> >
> >>
> >>
> >
>

Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Sean Owen <so...@cloudera.com>.
Ah, right. This wasn't actually resolved. Yeah your input on 15899
would be welcome. See if the proposed fix helps.

On Thu, Jul 28, 2016 at 11:52 AM, Rohit Chaddha
<ro...@gmail.com> wrote:
> 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 <ro...@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
>>> <ro...@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
>>> >> <ro...@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
>>> >
>>> >
>>
>>
>

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Rohit Chaddha <ro...@gmail.com>.
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 <ro...@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
>> <ro...@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
>> >> <ro...@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
>> >
>> >
>>
>
>

Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Rohit Chaddha <ro...@gmail.com>.
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
> <ro...@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
> >> <ro...@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
> >
> >
>

Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Hatim Diab <ti...@gmail.com>.
I’m not familiar with windows but for unix is the path is /data/zxy
then it’ll be 
file:///data/zxy
so I’d assume 
file://C:/

> On Jul 28, 2016, at 2:33 PM, 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
> <ro...@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
>>> <ro...@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
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscribe@spark.apache.org
> 


---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Sean Owen <so...@cloudera.com>.
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
<ro...@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
>> <ro...@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
>
>

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Rohit Chaddha <ro...@gmail.com>.
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
> <ro...@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
>

Re: Spark 2.0 -- spark warehouse relative path in absolute URI error

Posted by Sean Owen <so...@cloudera.com>.
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
<ro...@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

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org