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 Mark Kerzner <ma...@gmail.com> on 2011/02/18 00:37:02 UTC
Hadoop build fails
Hi,
I got the latest trunk out of svn, ran this command
ant -Djavac.args="-Xlint -Xmaxwarns 1000" clean test tar
and got the following error
/hadoop-common-trunk/build.xml:950: 'forrest.home' is not defined. Please
pass -Dforrest.home=<base of Apache Forrest installation> to Ant on
the command-line.
What should I do? Did I miss something in the documentation?
Thank you,
Mark
Re: Hadoop build fails
Posted by Mark Kerzner <ma...@gmail.com>.
Yes, that worked, thank you. I am now getting the error below - seems I
should just resolve one problem after another
[exec] Caused by: java.lang.ClassNotFoundException:
org.apache.fop.messaging.MessageHandler
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[exec] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[exec] ... 38 more
On Thu, Feb 17, 2011 at 9:26 PM, Harsh J <qw...@gmail.com> wrote:
> The 'tar' operation would additionally build the documentation (docs/
> stuff). Hadoop uses Apache Forrest to compile the documentation files,
> and thus Ant needs to know where on your computer is Apache Forrest's
> home directory.
>
> As Zhang points out, download the latest release of Apache Forrest
> from http://forrest.apache.org and untar it some path you can then
> pass as a -Dforrest.home=<path>
>
> Until recently this operation also required Java5 to be available. But
> now all is good and shiny with 1.6 alone, thanks to HADOOP-7075. Soon
> Forrest should go away too, if HADOOP-7069 gets resolved :-)
>
> (You may also require other things like Findbugs, etc. depending on
> the target - Check HowToContribute on the Wiki).
>
> On Fri, Feb 18, 2011 at 5:07 AM, Mark Kerzner <ma...@gmail.com>
> wrote:
> > Hi,
> >
> > I got the latest trunk out of svn, ran this command
> >
> > ant -Djavac.args="-Xlint -Xmaxwarns 1000" clean test tar
> >
> > and got the following error
> >
> > /hadoop-common-trunk/build.xml:950: 'forrest.home' is not defined. Please
> > pass -Dforrest.home=<base of Apache Forrest installation> to Ant
> on
> > the command-line.
> >
> > What should I do? Did I miss something in the documentation?
> >
> > Thank you,
> > Mark
> >
>
>
>
> --
> Harsh J
> www.harshj.com
>
Re: Hadoop build fails
Posted by Harsh J <qw...@gmail.com>.
The 'tar' operation would additionally build the documentation (docs/
stuff). Hadoop uses Apache Forrest to compile the documentation files,
and thus Ant needs to know where on your computer is Apache Forrest's
home directory.
As Zhang points out, download the latest release of Apache Forrest
from http://forrest.apache.org and untar it some path you can then
pass as a -Dforrest.home=<path>
Until recently this operation also required Java5 to be available. But
now all is good and shiny with 1.6 alone, thanks to HADOOP-7075. Soon
Forrest should go away too, if HADOOP-7069 gets resolved :-)
(You may also require other things like Findbugs, etc. depending on
the target - Check HowToContribute on the Wiki).
On Fri, Feb 18, 2011 at 5:07 AM, Mark Kerzner <ma...@gmail.com> wrote:
> Hi,
>
> I got the latest trunk out of svn, ran this command
>
> ant -Djavac.args="-Xlint -Xmaxwarns 1000" clean test tar
>
> and got the following error
>
> /hadoop-common-trunk/build.xml:950: 'forrest.home' is not defined. Please
> pass -Dforrest.home=<base of Apache Forrest installation> to Ant on
> the command-line.
>
> What should I do? Did I miss something in the documentation?
>
> Thank you,
> Mark
>
--
Harsh J
www.harshj.com
RE: Hadoop build fails
Posted by Tanping Wang <ta...@yahoo-inc.com>.
Download jdk1.5
Download apache-forrest
ant -Djava5.home=/PATH_TO_jdk1.5 -Dforrest.home=/PATH_TO_apache-forrest tar
However, suppose what you want is just a binary tar ball without source and documentations,
Just do
ant binary
Regards,
Tanping
-----Original Message-----
From: Mark Kerzner [mailto:markkerzner@gmail.com]
Sent: Thursday, February 17, 2011 3:37 PM
To: Hadoop Discussion Group
Subject: Hadoop build fails
Hi,
I got the latest trunk out of svn, ran this command
ant -Djavac.args="-Xlint -Xmaxwarns 1000" clean test tar
and got the following error
/hadoop-common-trunk/build.xml:950: 'forrest.home' is not defined. Please
pass -Dforrest.home=<base of Apache Forrest installation> to Ant on
the command-line.
What should I do? Did I miss something in the documentation?
Thank you,
Mark
Re: Hadoop build fails
Posted by Zhang Jianfeng <jz...@gmail.com>.
Hi Mark,
You should download the forrest from apache site. Then using this path
in your command.
Jianfeng
On Fri, Feb 18, 2011 at 7:37 AM, Mark Kerzner <ma...@gmail.com> wrote:
> Hi,
>
> I got the latest trunk out of svn, ran this command
>
> ant -Djavac.args="-Xlint -Xmaxwarns 1000" clean test tar
>
> and got the following error
>
> /hadoop-common-trunk/build.xml:950: 'forrest.home' is not defined. Please
> pass -Dforrest.home=<base of Apache Forrest installation> to Ant on
> the command-line.
>
> What should I do? Did I miss something in the documentation?
>
> Thank you,
> Mark
>