You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Amit Sela <am...@infolinks.com> on 2013/04/18 13:09:03 UTC
Configuration clone constructor not cloning classloader
Hi all,
I was wondering if there is a good reason why public
Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't
clone the classloader in "other" to the new Configration ?
Is this a bug ?
I'm asking because I'm trying to run a Hadoop client in OSGI environment
and I need to pass the bundle's ClassLoader to Configuration but it get's
along the way when Hadoop code instantiates new JobContext(Configuration).
Thanks,
Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Amit Sela <am...@infolinks.com>.
@Tom: I submitted the patch. Also added cloning of loadDefaults that was
missing as well.
I attached the patch to the JIRA you mentioned, first time so hope it's
OK...
Thanks.
On Fri, Apr 19, 2013 at 3:51 PM, Tom White <to...@cloudera.com> wrote:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> > Hi all,
> >
> > I was wondering if there is a good reason why public
> > Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't
> clone
> > the classloader in "other" to the new Configration ?
> >
> > Is this a bug ?
> >
> > I'm asking because I'm trying to run a Hadoop client in OSGI environment
> and
> > I need to pass the bundle's ClassLoader to Configuration but it get's
> along
> > the way when Hadoop code instantiates new JobContext(Configuration).
> >
> > Thanks,
> >
> > Amit.
>
Re: Configuration clone constructor not cloning classloader
Posted by yypvsxf19870706 <yy...@gmail.com>.
Hi Tom
I'm curious about that are you the author of the Hadoop definitive .
Sorry to ask the uncorrelated question .
Regards
发自我的 iPhone
在 2013-4-19,20:51,Tom White <to...@cloudera.com> 写道:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
>> Hi all,
>>
>> I was wondering if there is a good reason why public
>> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
>> the classloader in "other" to the new Configration ?
>>
>> Is this a bug ?
>>
>> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
>> I need to pass the bundle's ClassLoader to Configuration but it get's along
>> the way when Hadoop code instantiates new JobContext(Configuration).
>>
>> Thanks,
>>
>> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Amit Sela <am...@infolinks.com>.
@Tom: I submitted the patch. Also added cloning of loadDefaults that was
missing as well.
I attached the patch to the JIRA you mentioned, first time so hope it's
OK...
Thanks.
On Fri, Apr 19, 2013 at 3:51 PM, Tom White <to...@cloudera.com> wrote:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> > Hi all,
> >
> > I was wondering if there is a good reason why public
> > Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't
> clone
> > the classloader in "other" to the new Configration ?
> >
> > Is this a bug ?
> >
> > I'm asking because I'm trying to run a Hadoop client in OSGI environment
> and
> > I need to pass the bundle's ClassLoader to Configuration but it get's
> along
> > the way when Hadoop code instantiates new JobContext(Configuration).
> >
> > Thanks,
> >
> > Amit.
>
Re: Configuration clone constructor not cloning classloader
Posted by yypvsxf19870706 <yy...@gmail.com>.
Hi Tom
I'm curious about that are you the author of the Hadoop definitive .
Sorry to ask the uncorrelated question .
Regards
发自我的 iPhone
在 2013-4-19,20:51,Tom White <to...@cloudera.com> 写道:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
>> Hi all,
>>
>> I was wondering if there is a good reason why public
>> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
>> the classloader in "other" to the new Configration ?
>>
>> Is this a bug ?
>>
>> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
>> I need to pass the bundle's ClassLoader to Configuration but it get's along
>> the way when Hadoop code instantiates new JobContext(Configuration).
>>
>> Thanks,
>>
>> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by yypvsxf19870706 <yy...@gmail.com>.
Hi Tom
I'm curious about that are you the author of the Hadoop definitive .
Sorry to ask the uncorrelated question .
Regards
发自我的 iPhone
在 2013-4-19,20:51,Tom White <to...@cloudera.com> 写道:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
>> Hi all,
>>
>> I was wondering if there is a good reason why public
>> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
>> the classloader in "other" to the new Configration ?
>>
>> Is this a bug ?
>>
>> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
>> I need to pass the bundle's ClassLoader to Configuration but it get's along
>> the way when Hadoop code instantiates new JobContext(Configuration).
>>
>> Thanks,
>>
>> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Amit Sela <am...@infolinks.com>.
@Tom: I submitted the patch. Also added cloning of loadDefaults that was
missing as well.
I attached the patch to the JIRA you mentioned, first time so hope it's
OK...
Thanks.
On Fri, Apr 19, 2013 at 3:51 PM, Tom White <to...@cloudera.com> wrote:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> > Hi all,
> >
> > I was wondering if there is a good reason why public
> > Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't
> clone
> > the classloader in "other" to the new Configration ?
> >
> > Is this a bug ?
> >
> > I'm asking because I'm trying to run a Hadoop client in OSGI environment
> and
> > I need to pass the bundle's ClassLoader to Configuration but it get's
> along
> > the way when Hadoop code instantiates new JobContext(Configuration).
> >
> > Thanks,
> >
> > Amit.
>
Re: Configuration clone constructor not cloning classloader
Posted by Amit Sela <am...@infolinks.com>.
@Tom: I submitted the patch. Also added cloning of loadDefaults that was
missing as well.
I attached the patch to the JIRA you mentioned, first time so hope it's
OK...
Thanks.
On Fri, Apr 19, 2013 at 3:51 PM, Tom White <to...@cloudera.com> wrote:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> > Hi all,
> >
> > I was wondering if there is a good reason why public
> > Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't
> clone
> > the classloader in "other" to the new Configration ?
> >
> > Is this a bug ?
> >
> > I'm asking because I'm trying to run a Hadoop client in OSGI environment
> and
> > I need to pass the bundle's ClassLoader to Configuration but it get's
> along
> > the way when Hadoop code instantiates new JobContext(Configuration).
> >
> > Thanks,
> >
> > Amit.
>
Re: Configuration clone constructor not cloning classloader
Posted by yypvsxf19870706 <yy...@gmail.com>.
Hi Tom
I'm curious about that are you the author of the Hadoop definitive .
Sorry to ask the uncorrelated question .
Regards
发自我的 iPhone
在 2013-4-19,20:51,Tom White <to...@cloudera.com> 写道:
> Hi Amit,
>
> It is a bug, fixed by
> https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
> never made it into branch-1. Can you create a branch-1 patch for this
> please?
>
> Thanks,
> Tom
>
> On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
>> Hi all,
>>
>> I was wondering if there is a good reason why public
>> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
>> the classloader in "other" to the new Configration ?
>>
>> Is this a bug ?
>>
>> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
>> I need to pass the bundle's ClassLoader to Configuration but it get's along
>> the way when Hadoop code instantiates new JobContext(Configuration).
>>
>> Thanks,
>>
>> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Tom White <to...@cloudera.com>.
Hi Amit,
It is a bug, fixed by
https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
never made it into branch-1. Can you create a branch-1 patch for this
please?
Thanks,
Tom
On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> Hi all,
>
> I was wondering if there is a good reason why public
> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
> the classloader in "other" to the new Configration ?
>
> Is this a bug ?
>
> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
> I need to pass the bundle's ClassLoader to Configuration but it get's along
> the way when Hadoop code instantiates new JobContext(Configuration).
>
> Thanks,
>
> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Tom White <to...@cloudera.com>.
Hi Amit,
It is a bug, fixed by
https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
never made it into branch-1. Can you create a branch-1 patch for this
please?
Thanks,
Tom
On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> Hi all,
>
> I was wondering if there is a good reason why public
> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
> the classloader in "other" to the new Configration ?
>
> Is this a bug ?
>
> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
> I need to pass the bundle's ClassLoader to Configuration but it get's along
> the way when Hadoop code instantiates new JobContext(Configuration).
>
> Thanks,
>
> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Tom White <to...@cloudera.com>.
Hi Amit,
It is a bug, fixed by
https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
never made it into branch-1. Can you create a branch-1 patch for this
please?
Thanks,
Tom
On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> Hi all,
>
> I was wondering if there is a good reason why public
> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
> the classloader in "other" to the new Configration ?
>
> Is this a bug ?
>
> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
> I need to pass the bundle's ClassLoader to Configuration but it get's along
> the way when Hadoop code instantiates new JobContext(Configuration).
>
> Thanks,
>
> Amit.
Re: Configuration clone constructor not cloning classloader
Posted by Tom White <to...@cloudera.com>.
Hi Amit,
It is a bug, fixed by
https://issues.apache.org/jira/browse/HADOOP-6103, although the fix
never made it into branch-1. Can you create a branch-1 patch for this
please?
Thanks,
Tom
On Thu, Apr 18, 2013 at 4:09 AM, Amit Sela <am...@infolinks.com> wrote:
> Hi all,
>
> I was wondering if there is a good reason why public
> Configuration(Configuration other) constructor in Hadoop 1.0.4 doesn't clone
> the classloader in "other" to the new Configration ?
>
> Is this a bug ?
>
> I'm asking because I'm trying to run a Hadoop client in OSGI environment and
> I need to pass the bundle's ClassLoader to Configuration but it get's along
> the way when Hadoop code instantiates new JobContext(Configuration).
>
> Thanks,
>
> Amit.