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 "Agarwal, Nikhil" <Ni...@netapp.com> on 2013/03/21 11:42:51 UTC

Hadoop not getting compiled

Hi,

I tried to make some modification in hadoop 1.0.4 source code by introducing few external jars and then using their functions like httpclient, etc. The eclipse does not show any error anywhere but when I run the command "ant compile" it gives a build failure saying "package org.apache.http does not exist" although I have included the required jars.

Can anyone suggest what could have possibly gone wrong?

Thanks & Regards,
Nikhil

Re: Hadoop not getting compiled

Posted by Harsh J <ha...@cloudera.com>.
These two may sorta compose your issue:

"by introducing few external jars and then using their functions like
httpclient, etc."
"The eclipse does not show any error"

How did you include your external jar into the project? Did you follow
the regular ant+ivy route the project uses or were your jars added
just to the eclipse project? You need to add dependencies such that
its resolvable by the ant's build.xml used for branch-1 sources. This
can be done by modifying the ivy.xml and the files under the ivy/
directory as appropriate. For more reading on how to include
dependencies using Ant and Ivy, head to
http://ant.apache.org/ivy/history/latest-milestone/index.html

On Thu, Mar 21, 2013 at 4:12 PM, Agarwal, Nikhil
<Ni...@netapp.com> wrote:
> Hi,
>
>
>
> I tried to make some modification in hadoop 1.0.4 source code by introducing
> few external jars and then using their functions like httpclient, etc. The
> eclipse does not show any error anywhere but when I run the command “ant
> compile” it gives a build failure saying “package org.apache.http does not
> exist” although I have included the required jars.
>
>
>
> Can anyone suggest what could have possibly gone wrong?
>
>
>
> Thanks & Regards,
>
> Nikhil



-- 
Harsh J

Re: Hadoop not getting compiled

Posted by Harsh J <ha...@cloudera.com>.
These two may sorta compose your issue:

"by introducing few external jars and then using their functions like
httpclient, etc."
"The eclipse does not show any error"

How did you include your external jar into the project? Did you follow
the regular ant+ivy route the project uses or were your jars added
just to the eclipse project? You need to add dependencies such that
its resolvable by the ant's build.xml used for branch-1 sources. This
can be done by modifying the ivy.xml and the files under the ivy/
directory as appropriate. For more reading on how to include
dependencies using Ant and Ivy, head to
http://ant.apache.org/ivy/history/latest-milestone/index.html

On Thu, Mar 21, 2013 at 4:12 PM, Agarwal, Nikhil
<Ni...@netapp.com> wrote:
> Hi,
>
>
>
> I tried to make some modification in hadoop 1.0.4 source code by introducing
> few external jars and then using their functions like httpclient, etc. The
> eclipse does not show any error anywhere but when I run the command “ant
> compile” it gives a build failure saying “package org.apache.http does not
> exist” although I have included the required jars.
>
>
>
> Can anyone suggest what could have possibly gone wrong?
>
>
>
> Thanks & Regards,
>
> Nikhil



-- 
Harsh J

Re: Hadoop not getting compiled

Posted by Harsh J <ha...@cloudera.com>.
These two may sorta compose your issue:

"by introducing few external jars and then using their functions like
httpclient, etc."
"The eclipse does not show any error"

How did you include your external jar into the project? Did you follow
the regular ant+ivy route the project uses or were your jars added
just to the eclipse project? You need to add dependencies such that
its resolvable by the ant's build.xml used for branch-1 sources. This
can be done by modifying the ivy.xml and the files under the ivy/
directory as appropriate. For more reading on how to include
dependencies using Ant and Ivy, head to
http://ant.apache.org/ivy/history/latest-milestone/index.html

On Thu, Mar 21, 2013 at 4:12 PM, Agarwal, Nikhil
<Ni...@netapp.com> wrote:
> Hi,
>
>
>
> I tried to make some modification in hadoop 1.0.4 source code by introducing
> few external jars and then using their functions like httpclient, etc. The
> eclipse does not show any error anywhere but when I run the command “ant
> compile” it gives a build failure saying “package org.apache.http does not
> exist” although I have included the required jars.
>
>
>
> Can anyone suggest what could have possibly gone wrong?
>
>
>
> Thanks & Regards,
>
> Nikhil



-- 
Harsh J

Re: Hadoop not getting compiled

Posted by Harsh J <ha...@cloudera.com>.
These two may sorta compose your issue:

"by introducing few external jars and then using their functions like
httpclient, etc."
"The eclipse does not show any error"

How did you include your external jar into the project? Did you follow
the regular ant+ivy route the project uses or were your jars added
just to the eclipse project? You need to add dependencies such that
its resolvable by the ant's build.xml used for branch-1 sources. This
can be done by modifying the ivy.xml and the files under the ivy/
directory as appropriate. For more reading on how to include
dependencies using Ant and Ivy, head to
http://ant.apache.org/ivy/history/latest-milestone/index.html

On Thu, Mar 21, 2013 at 4:12 PM, Agarwal, Nikhil
<Ni...@netapp.com> wrote:
> Hi,
>
>
>
> I tried to make some modification in hadoop 1.0.4 source code by introducing
> few external jars and then using their functions like httpclient, etc. The
> eclipse does not show any error anywhere but when I run the command “ant
> compile” it gives a build failure saying “package org.apache.http does not
> exist” although I have included the required jars.
>
>
>
> Can anyone suggest what could have possibly gone wrong?
>
>
>
> Thanks & Regards,
>
> Nikhil



-- 
Harsh J