Hi Vidyasagar,

It does not look like you are running 'ant package' from the root of the
hive source tree.
The error message in your original email references the path
master/hadoop/hadoop-0.20.1/build.xml, which is not a subpath of the hive
source
tree. Instead it looks like you are running 'ant package' in
master/hadoop/hadoop-0.20.1
on the hadoop-0.20.1 sources, which is actually unnecessary since the Hadoop
sources which
are downloaded when Hive is built include prebuilt JARs.

In order to build Hive against hadoop-0.20.1 please do the following:

% cd ~/.ant/cache/hadoop/core/sources
% wget
http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
% cd
% svn co http://svn.apache.org/repos/asf/hadoop/hive/trunk hive
% cd hive
% ant -Dhadoop.version=0.20.1 clean package

If for some other reason you need to build hadoop-0.20.1 from source you
need
to follow these steps:

1) Download and install Apache Forrest:
http://forrest.apache.org/docs_0_90/your-project.html#installing

2) Install Java5 and set JAVA5_HOME to point the Java5 install directory.

3) Run the following command from the root of your hadoop-0.20.1 source
tree:
    % ant package -Djava5.home=$JAVA5_HOME -Dforrest.home=$FORREST_HOME'

Hope this helps.

Carl

On Thu, Feb 11, 2010 at 1:26 AM, Vidyasagar Venkata Nallapati <
[email protected]> wrote:

> I had taken a svn check out
>
> svn co http://svn.apache.org/repos/asf/hadoop/hive/trunk hive
>
> and builded through ant
>
> ant package.
>
> Regards
> Vidyasagar N V
>
>
> -----Original Message-----
> From: Zheng Shao [mailto:[email protected]]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: [email protected]
> Subject: Re: Hive Installation Error
>
> What commands did you run? With which release?
>
> Zheng
> On Wed, Feb 10, 2010 at 11:20 PM, Vidyasagar Venkata Nallapati
> <[email protected]> wrote:
> > Hi,
> >
> >
> >
> > Installation is giving an error as
> >
> >
> >
> > master/hadoop/hadoop-0.20.1/build.xml:895: 'java5.home' is not defined.
> > Forrest requires Java 5.  Please pass -Djava5.home=<base of Java 5
> > distribution> to Ant on the command-line.
> >
> >         at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:142)
> >
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >
> >         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> >
> >         at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >
> >         at
> >
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> >
> >         at org.apache.tools.ant.Task.perform(Task.java:348)
> >
> >         at org.apache.tools.ant.Target.execute(Target.java:357)
> >
> >         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
> >
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> >
> >         at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> >
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
> >
> >         at org.apache.tools.ant.Main.runBuild(Main.java:758)
> >
> >         at org.apache.tools.ant.Main.startAnt(Main.java:217)
> >
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >
> >
> >
> > Total time: 7 minutes 11 seconds
> >
> >
> >
> > Please guide on this case.
> >
> >
> >
> > Regards
> >
> > Vidyasagar N V
> >
> > ________________________________
> > DISCLAIMER: The information in this message is confidential and may be
> > legally privileged. It is intended solely for the addressee. Access to
> this
> > message by anyone else is unauthorized. If you are not the intended
> > recipient, any disclosure, copying, or distribution of the message, or
> any
> > action or omission taken by you in reliance on it, is prohibited and may
> be
> > unlawful. Please immediately contact the sender if you have received this
> > message in error. Further, this e-mail may contain viruses and all
> > reasonable precaution to minimize the risk arising there from is taken by
> > OnMobile. OnMobile is not liable for any damage sustained by you as a
> result
> > of any virus in this e-mail. All applicable virus checks should be
> carried
> > out by you before opening this e-mail or any attachment thereto.
> > Thank you - OnMobile Global Limited.
> >
>
>
>
> --
> Yours,
> Zheng
>
> DISCLAIMER: The information in this message is confidential and may be
> legally privileged. It is intended solely for the addressee. Access to this
> message by anyone else is unauthorized. If you are not the intended
> recipient, any disclosure, copying, or distribution of the message, or any
> action or omission taken by you in reliance on it, is prohibited and may be
> unlawful. Please immediately contact the sender if you have received this
> message in error. Further, this e-mail may contain viruses and all
> reasonable precaution to minimize the risk arising there from is taken by
> OnMobile. OnMobile is not liable for any damage sustained by you as a result
> of any virus in this e-mail. All applicable virus checks should be carried
> out by you before opening this e-mail or any attachment thereto.
> Thank you - OnMobile Global Limited.
>

Reply via email to