You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Yang <te...@gmail.com> on 2012/06/25 23:18:35 UTC
classloader priority?
if I run
hadoop jar myjar.jar
and myjar.jar contains some hadoop classes,
where would these hadoop classes be loaded from ? the system hadoop
installation or from myjar.jar ?
Thanks
Yang
Re: classloader priority?
Posted by Dmitriy Ryaboy <dv...@gmail.com>.
Depends on how your Hadoop configuration is set up. By default, the
ones in hadoop installation override.
IIRC this is controlled by mapreduce.task.classpath.user.precedence parameter
D
On Mon, Jun 25, 2012 at 2:18 PM, Yang <te...@gmail.com> wrote:
> if I run
> hadoop jar myjar.jar
>
> and myjar.jar contains some hadoop classes,
> where would these hadoop classes be loaded from ? the system hadoop
> installation or from myjar.jar ?
>
>
> Thanks
> Yang
Re: classloader priority?
Posted by Thejas Nair <th...@hortonworks.com>.
This is a question more appropriate for the hadoop mailing list.
But if you set HADOOP_USER_CLASSPATH_FIRST=true, it think it might help.
You can check with the hadoop shell script. (less `which hadoop`).
THanks,
Thejas
On 6/25/12 2:18 PM, Yang wrote:
> if I run
> hadoop jar myjar.jar
>
> and myjar.jar contains some hadoop classes,
> where would these hadoop classes be loaded from ? the system hadoop
> installation or from myjar.jar ?
>
>
> Thanks
> Yang
>