You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Vidyasagar Venkata Nallapati <vi...@onmobile.com> on 2010/02/11 08:20:14 UTC

Hive Installation Error

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.

RE: Hive Installation Error

Posted by "baburaj.S" <ba...@onmobile.com>.
Is it possible in this case that we can built it without forest. Will the hive work .


From: Vidyasagar Venkata Nallapati [mailto:vidyasagar.nallapati@onmobile.com]
Sent: Thursday, February 11, 2010 12:50 PM
To: hive-user@hadoop.apache.org
Subject: Hive Installation Error

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.

________________________________
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.

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
> I do not know tons about POM/IVY, but I am not sure I am very happy
> with it in this build process. On one hand bundling three versions of
> hadoop core seems wasteful.
>

It's actually four versions of Hadoop (many of which include older versions
of Hive), but who's counting ;)

That time is a little too long for my liking. Likewise I think shim
> building three branches is a good thing, but I think we would be
> better with some type of configure process
>

I did some work on this in HIVE-984. Please comment on this ticket
if you think it makes sense.

Also if ivy/pom is  flaky, I am not sure its 'coolness' factor
> outweighs its practicality. In my experience a failing build is a very
> frustrating thing for some users and others might be too shy to help,
> or people who just walk away and start searching for another
> alternative application.
>

Ivy is not the problem here. In fact one of the goals of Ivy and dependency
managers in general is to provide more than one way of resolving
a dependency. Rather, the problem is that our Ivy configuration is broken.
We call out dependencies on the Hadoop 0.17.2.1, 0.18.3, 0.19.0, and 0.20.0
source tarballs, yet only provide one resolver in ivy/ivysettings.xml that
can actually
satisfy this dependency (i.e. archive.apache.org/dist). If
archive.apache.org is
unreachable our ivysettings configuration causes Ivy to fall back to one of
the
other default resolvers, but this time looking for Hadoop POMs. This will
always
fail since no one has published Hadoop POMs (see HADOOP-6382).

I think we have two options for fixing this problem:

1) Add more Apache mirrors to the list of URL resolvers in ivysettings.xml
    (and fix ivysettings so that it does not look for Hadoop POMs).

2) Temporarily satisfy the shim dependencies by checking the Hadoop JARs
    into the lib directory, and eventually transition back to Ivy when
Hadoop
    POMs become available.

Until Hadoop POMs become available I think (2) is the better option mostly
because (1) is wasteful (we only need the JARs, not all of the source), and
will probably still fail for some subset of users who can't access any of
the
apache mirrors included our configuration.

Thanks.

Carl

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
> I do not know tons about POM/IVY, but I am not sure I am very happy
> with it in this build process. On one hand bundling three versions of
> hadoop core seems wasteful.
>

It's actually four versions of Hadoop (many of which include older versions
of Hive), but who's counting ;)

That time is a little too long for my liking. Likewise I think shim
> building three branches is a good thing, but I think we would be
> better with some type of configure process
>

I did some work on this in HIVE-984. Please comment on this ticket
if you think it makes sense.

Also if ivy/pom is  flaky, I am not sure its 'coolness' factor
> outweighs its practicality. In my experience a failing build is a very
> frustrating thing for some users and others might be too shy to help,
> or people who just walk away and start searching for another
> alternative application.
>

Ivy is not the problem here. In fact one of the goals of Ivy and dependency
managers in general is to provide more than one way of resolving
a dependency. Rather, the problem is that our Ivy configuration is broken.
We call out dependencies on the Hadoop 0.17.2.1, 0.18.3, 0.19.0, and 0.20.0
source tarballs, yet only provide one resolver in ivy/ivysettings.xml that
can actually
satisfy this dependency (i.e. archive.apache.org/dist). If
archive.apache.org is
unreachable our ivysettings configuration causes Ivy to fall back to one of
the
other default resolvers, but this time looking for Hadoop POMs. This will
always
fail since no one has published Hadoop POMs (see HADOOP-6382).

I think we have two options for fixing this problem:

1) Add more Apache mirrors to the list of URL resolvers in ivysettings.xml
    (and fix ivysettings so that it does not look for Hadoop POMs).

2) Temporarily satisfy the shim dependencies by checking the Hadoop JARs
    into the lib directory, and eventually transition back to Ivy when
Hadoop
    POMs become available.

Until Hadoop POMs become available I think (2) is the better option mostly
because (1) is wasteful (we only need the JARs, not all of the source), and
will probably still fail for some subset of users who can't access any of
the
apache mirrors included our configuration.

Thanks.

Carl

Re: Hive Installation Error

Posted by Edward Capriolo <ed...@gmail.com>.
On Sun, Feb 14, 2010 at 1:07 PM, Vidyasagar Venkata Nallapati
<vi...@onmobile.com> wrote:
> Hi Carl,
>
>
>
> I am still getting error with the pom of the hadoop builds, how can I solve
> these?
>
>
>
> [ivy:retrieve]          tried
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>
> [ivy:retrieve] ERROR: Server access Error: Connection timed out
> url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>
> [ivy:retrieve]          tried
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz
>
>
>
> Regards
>
> Vidyasagar N V
>
> From: Carl Steinbach [mailto:carl@cloudera.com]
> Sent: Sunday, February 14, 2010 12:46 PM
> To: hive-user@hadoop.apache.org
> Subject: Re: Hive Installation Error
>
>
>
> The answer to your problem is here:
> http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html
>
> Carl
>
> On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati
> <vi...@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am getting an error as
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml
>
>
>
> BUILD FAILED
>
> /master/hadoop/hive/build.xml:148: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build.xml:93: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/shims/build.xml:55: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build-common.xml:180: impossible to configure
> ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml :
> java.text.ParseException: failed to load settings from
> file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL
> to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> From: Carl Steinbach [mailto:carl@cloudera.com]
> Sent: Thursday, February 11, 2010 6:06 PM
>
> To: hive-user@hadoop.apache.org
> Subject: Re: Hive Installation Error
>
>
>
> Sorry, I forgot to include one command:
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
>
> On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com> wrote:
>
> Hi Vidyasagar,
>
> Try doing the following:
>
> % cd ~/.ant/cache/hadoop/core/sources
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
>
> % cd /master/hive
> % svn update
>
> % ant -Dhadoop.version=0.20.1 clean package
>
> On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati
> <vi...@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am still getting an error as
>
>
>
> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>
> Buildfile: build.xml
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: anttasks
>
>    [delete] Deleting directory /master/hive/build/anttasks
>
>
>
> clean:
>
>      [echo] Cleaning: shims
>
>    [delete] Deleting directory /master/hive/build/shims
>
>
>
> clean:
>
>      [echo] Cleaning: common
>
>
>
> clean:
>
>      [echo] Cleaning: serde
>
>
>
> clean:
>
>      [echo] Cleaning: metastore
>
>
>
> clean:
>
>      [echo] Cleaning: ql
>
>
>
> clean:
>
>      [echo] Cleaning: cli
>
>
>
> clean:
>
>      [echo] Cleaning: contrib
>
>
>
> clean:
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: hwi
>
>
>
> clean:
>
>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>
>    [delete] Deleting directory /master/hive/build
>
>
>
> jar:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build
>
>     [mkdir] Created dir: /master/hive/build/shims
>
>     [mkdir] Created dir: /master/hive/build/shims/classes
>
>     [mkdir] Created dir: /master/hive/build/jexl/classes
>
>     [mkdir] Created dir: /master/hive/build/hadoopcore
>
>     [mkdir] Created dir: /master/hive/build/shims/test
>
>     [mkdir] Created dir: /master/hive/build/shims/test/src
>
>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>
>
>
> compile-ant-tasks:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build/anttasks
>
>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>     [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
>
>     [javac] Note:
> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
> overrides a deprecated API.
>
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>
>
>
> deploy-ant-tasks:
>
>
>
> create-dirs:
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>
>
> jar:
>
>      [copy] Copying 1 file to
> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>
>       [jar] Building jar:
> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>
>
>
> init:
>
>
>
> compile:
>
>
>
> ivy-init-dirs:
>
>     [mkdir] Created dir: /master/hive/build/ivy
>
>     [mkdir] Created dir: /master/hive/build/ivy/lib
>
>     [mkdir] Created dir: /master/hive/build/ivy/report
>
>     [mkdir] Created dir: /master/hive/build/ivy/maven
>
>
>
> ivy-download:
>
>       [get] Getting:
> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>
>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>
>
>
> ivy-probe-antlib:
>
>
>
> ivy-init-antlib:
>
>
>
> ivy-init:
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>
> [ivy:retrieve] :: resolving dependencies ::
> org.apache.hadoop.hive#shims;working@ph2
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>
> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
>
>
> ---------------------------------------------------------------------
>
>         |                  |            modules            ||   artifacts
> |
>
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>
>
> ---------------------------------------------------------------------
>
>         |      default     |   1   |   0   |   0   |   0   ||   1   |   0
> |
>
>
> ---------------------------------------------------------------------
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve] :::: ERRORS
>
> [ivy:retrieve]  Server access Error: Connection timed out
> url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>
> [ivy:retrieve]  Server access Error: Connection timed out
> url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>
>
>
> install-hadoopcore-internal:
>
>
>
> BUILD FAILED
>
> /master/hive/build.xml:148: The following error occurred while executing
> this line:
>
> /master/hive/build.xml:93: The following error occurred while executing this
> line:
>
> /master/hive/shims/build.xml:64: The following error occurred while
> executing this line:
>
> /master/hive/build-common.xml:178: Error while expanding
> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>
>
>
> Can you please help me on this.
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> From: Carl Steinbach [mailto:carl@cloudera.com]
> Sent: Thursday, February 11, 2010 4:50 PM
>
> To: hive-user@hadoop.apache.org
> Subject: Re: Hive Installation Error
>
>
>
> 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
> <vi...@onmobile.com> 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:zshao9@gmail.com]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: hive-user@hadoop.apache.org
>
> 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
> <vi...@onmobile.com> 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.
>
>
>
>
>
> ________________________________
>
> 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.
>
>
>
>
>
>
>
> ________________________________
>
> 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.
>
>
>
> ________________________________
> 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.
>

I do not know tons about POM/IVY, but I am not sure I am very happy
with it in this build process. On one hand bundling three versions of
hadoop core seems wasteful.

On the other hand, I have a good Internet connection and...

jar:
     [echo] Jar: hwi
      [jar] Building jar:
/home/ecapriolo/hive-20/hive-trunk/build/hwi/hive-hwi-0.6.0.jar

BUILD SUCCESSFUL
Total time: 4 minutes 59 seconds

That time is a little too long for my liking. Likewise I think shim
building three branches is a good thing, but I think we would be
better with some type of configure process

ant -Dhadoop.version=18.3 -Dhadoop.version=20.0,

Also if ivy/pom is  flaky, I am not sure its 'coolness' factor
outweighs its practicality. In my experience a failing build is a very
frustrating thing for some users and others might be too shy to help,
or people who just walk away and start searching for another
alternative application.

RE: Hive Installation Error

Posted by Vidyasagar Venkata Nallapati <vi...@onmobile.com>.
Hi Carl,

I am still getting the error in pom

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.hadoop.hive#shims;working@ph2
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found hadoop#core;0.17.2.1 in hadoop-source
[ivy:retrieve]  found hadoop#core;0.18.3 in hadoop-source
[ivy:retrieve]  found hadoop#core;0.19.0 in hadoop-source
[ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
[ivy:retrieve] :: resolution report :: resolve 1550244ms :: artifacts dl 6ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   4   |   0   |   0   |   0   ||   4   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.18.3/core-0.18.3.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.18.3/hadoop-0.18.3.tar.gz
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.19.0/core-0.19.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.19.0/hadoop-0.19.0.tar.gz
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  0 artifacts copied, 4 already retrieved (0kB/7ms)


Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com]
Sent: Monday, February 15, 2010 1:16 PM
To: hive-user@hadoop.apache.org
Subject: Re: Hive Installation Error

Hi Vidyasagar,

Please let us know if this fix resolves your issue so that we can make it permanent.

Thanks.

Carl
On Sun, Feb 14, 2010 at 9:37 PM, Carl Steinbach <ca...@cloudera.com>> wrote:
Hi Vidyasagar,

Please open the file ivy/ivysettings.xml in your Hive source directory and
locate the following line:

-    <chain name="default" dual="true" checkmodified="true" changingPattern=".*SNAPSHOT">

then change the checkmodified value to "false":

+    <chain name="default" dual="true" checkmodified="false" changingPattern=".*SNAPSHOT">

I think this change should fix your problem. If it does not, please run "ant -v package > ant.log"
and send the ant.log file directly to me as an attachment (please do not include hive-user), and
I will see if I can figure out what is wrong.

Thanks.

Carl


On Sun, Feb 14, 2010 at 6:18 PM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

This is my output,

phoenix@ph2:~$ ls -alt ~/.ant/cache/hadoop/core/sources
total 127176
drwxr-xr-x 3 phoenix phoenix     4096 2010-02-14 23:03 ..
drwxr-xr-x 2 phoenix phoenix     4096 2010-02-14 22:33 .
-rw-r--r-- 1 phoenix phoenix 42813980 2009-04-09 10:53 hadoop-0.20.0.tar.gz
-rw-r--r-- 1 phoenix phoenix 30705253 2009-01-23 04:44 hadoop-0.18.3.tar.gz
-rw-r--r-- 1 phoenix phoenix 42266180 2008-11-14 08:46 hadoop-0.19.0.tar.gz
-rw-r--r-- 1 phoenix phoenix 14427013 2008-08-21 04:27 hadoop-0.17.2.1.tar.gz
phoenix@ph2:~$ echo $ANT_OPTS
-Dhttp.proxyHost=172.16.28.60 -Dhttp.proxyPort=8000

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Monday, February 15, 2010 7:07 AM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

Hi Vidyasagar,

Please run the following diagnostic commands and send us the results:

% ls -alt ~/.ant/cache/hadoop/core/sources
% echo $ANT_OPTS

Thanks.

Carl
On Sun, Feb 14, 2010 at 10:07 AM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am still getting error with the pom of the hadoop builds, how can I solve these?

[ivy:retrieve]          tried https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve] ERROR: Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve]          tried https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz

Regards
Vidyasagar N V
From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Sunday, February 14, 2010 12:46 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

The answer to your problem is here: http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html

Carl
On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am getting an error as

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml

BUILD FAILED
/master/hadoop/hive/build.xml:148: The following error occurred while executing this line:
/master/hadoop/hive/build.xml:93: The following error occurred while executing this line:
/master/hadoop/hive/shims/build.xml:55: The following error occurred while executing this line:
/master/hadoop/hive/build-common.xml:180: impossible to configure ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml : java.text.ParseException: failed to load settings from file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 6:06 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

Sorry, I forgot to include one command:

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com>> wrote:
Hi Vidyasagar,

Try doing the following:


% cd ~/.ant/cache/hadoop/core/sources
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
% cd /master/hive
% svn update

% ant -Dhadoop.version=0.20.1 clean package
On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am still getting an error as

phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
Buildfile: build.xml

clean:

clean:
     [echo] Cleaning: anttasks
   [delete] Deleting directory /master/hive/build/anttasks

clean:
     [echo] Cleaning: shims
   [delete] Deleting directory /master/hive/build/shims

clean:
     [echo] Cleaning: common

clean:
     [echo] Cleaning: serde

clean:
     [echo] Cleaning: metastore

clean:
     [echo] Cleaning: ql

clean:
     [echo] Cleaning: cli

clean:
     [echo] Cleaning: contrib

clean:

clean:

clean:
     [echo] Cleaning: hwi

clean:
     [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
   [delete] Deleting directory /master/hive/build

jar:

create-dirs:
    [mkdir] Created dir: /master/hive/build
    [mkdir] Created dir: /master/hive/build/shims
    [mkdir] Created dir: /master/hive/build/shims/classes
    [mkdir] Created dir: /master/hive/build/jexl/classes
    [mkdir] Created dir: /master/hive/build/hadoopcore
    [mkdir] Created dir: /master/hive/build/shims/test
    [mkdir] Created dir: /master/hive/build/shims/test/src
    [mkdir] Created dir: /master/hive/build/shims/test/classes

compile-ant-tasks:

create-dirs:
    [mkdir] Created dir: /master/hive/build/anttasks
    [mkdir] Created dir: /master/hive/build/anttasks/classes
    [mkdir] Created dir: /master/hive/build/anttasks/test
    [mkdir] Created dir: /master/hive/build/anttasks/test/src
    [mkdir] Created dir: /master/hive/build/anttasks/test/classes

init:

compile:
     [echo] Compiling: anttasks
    [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
    [javac] Note: /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

deploy-ant-tasks:

create-dirs:

init:

compile:
     [echo] Compiling: anttasks

jar:
     [copy] Copying 1 file to /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
      [jar] Building jar: /master/hive/build/anttasks/hive-anttasks-0.6.0.jar

init:

compile:

ivy-init-dirs:
    [mkdir] Created dir: /master/hive/build/ivy
    [mkdir] Created dir: /master/hive/build/ivy/lib
    [mkdir] Created dir: /master/hive/build/ivy/report
    [mkdir] Created dir: /master/hive/build/ivy/maven

ivy-download:
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
      [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.hadoop.hive#shims;working@ph2
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
[ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   0   |   0   |   0   ||   1   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)

install-hadoopcore-internal:

BUILD FAILED
/master/hive/build.xml:148: The following error occurred while executing this line:
/master/hive/build.xml:93: The following error occurred while executing this line:
/master/hive/shims/build.xml:64: The following error occurred while executing this line:
/master/hive/build-common.xml:178: Error while expanding /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz

Can you please help me on this.

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 4:50 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

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 <vi...@onmobile.com>> 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:zshao9@gmail.com<ma...@gmail.com>]
Sent: Thursday, February 11, 2010 2:26 PM
To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
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
<vi...@onmobile.com>> 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.


________________________________
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.



________________________________
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.


________________________________
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.


________________________________
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.



________________________________
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.

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Vidyasagar,

Please let us know if this fix resolves your issue so that we can make it
permanent.

Thanks.

Carl

On Sun, Feb 14, 2010 at 9:37 PM, Carl Steinbach <ca...@cloudera.com> wrote:

> Hi Vidyasagar,
>
> Please open the file ivy/ivysettings.xml in your Hive source directory and
> locate the following line:
>
> -    <chain name="default" dual="true" checkmodified="true"
> changingPattern=".*SNAPSHOT">
>
> then change the checkmodified value to "false":
>
> +    <chain name="default" dual="true" checkmodified="false"
> changingPattern=".*SNAPSHOT">
>
> I think this change should fix your problem. If it does not, please run
> "ant -v package > ant.log"
> and send the ant.log file directly to me as an attachment (please do not
> include hive-user), and
> I will see if I can figure out what is wrong.
>
> Thanks.
>
> Carl
>
>
>
> On Sun, Feb 14, 2010 at 6:18 PM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
>>  Hi Carl,
>>
>>
>>
>> This is my output,
>>
>>
>>
>> phoenix@ph2:~$ ls -alt ~/.ant/cache/hadoop/core/sources
>>
>> total 127176
>>
>> drwxr-xr-x 3 phoenix phoenix     4096 2010-02-14 23:03 ..
>>
>> drwxr-xr-x 2 phoenix phoenix     4096 2010-02-14 22:33 .
>>
>> -rw-r--r-- 1 phoenix phoenix 42813980 2009-04-09 10:53
>> hadoop-0.20.0.tar.gz
>>
>> -rw-r--r-- 1 phoenix phoenix 30705253 2009-01-23 04:44
>> hadoop-0.18.3.tar.gz
>>
>> -rw-r--r-- 1 phoenix phoenix 42266180 2008-11-14 08:46
>> hadoop-0.19.0.tar.gz
>>
>> -rw-r--r-- 1 phoenix phoenix 14427013 2008-08-21 04:27
>> hadoop-0.17.2.1.tar.gz
>>
>> phoenix@ph2:~$ echo $ANT_OPTS
>>
>> -Dhttp.proxyHost=172.16.28.60 -Dhttp.proxyPort=8000
>>
>>
>>
>> Regards
>>
>> Vidyasagar N V
>>
>>
>>
>> *From:* Carl Steinbach [mailto:carl@cloudera.com]
>> *Sent:* Monday, February 15, 2010 7:07 AM
>>
>> *To:* hive-user@hadoop.apache.org
>> *Subject:* Re: Hive Installation Error
>>
>>
>>
>> Hi Vidyasagar,
>>
>> Please run the following diagnostic commands and send us the results:
>>
>> % ls -alt ~/.ant/cache/hadoop/core/sources
>> % echo $ANT_OPTS
>>
>> Thanks.
>>
>> Carl
>>
>>  On Sun, Feb 14, 2010 at 10:07 AM, Vidyasagar Venkata Nallapati <
>> vidyasagar.nallapati@onmobile.com> wrote:
>>
>> Hi Carl,
>>
>>
>>
>> I am still getting error with the pom of the hadoop builds, how can I
>> solve these?
>>
>>
>>
>> [ivy:retrieve]          tried
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>>
>> [ivy:retrieve] ERROR: Server access Error: Connection timed out url=
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>>
>> [ivy:retrieve]          tried
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz
>>
>>
>>
>> Regards
>>
>> Vidyasagar N V
>>
>> *From:* Carl Steinbach [mailto:carl@cloudera.com]
>> *Sent:* Sunday, February 14, 2010 12:46 PM
>>
>>
>> *To:* hive-user@hadoop.apache.org
>> *Subject:* Re: Hive Installation Error
>>
>>
>>
>> The answer to your problem is here:
>> http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html
>>
>> Carl
>>
>> On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <
>> vidyasagar.nallapati@onmobile.com> wrote:
>>
>> Hi Carl,
>>
>>
>>
>> I am getting an error as
>>
>>
>>
>> ivy-retrieve-hadoop-source:
>>
>> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
>> http://ant.apache.org/ivy/ ::
>>
>> :: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml
>>
>>
>>
>> BUILD FAILED
>>
>> /master/hadoop/hive/build.xml:148: The following error occurred while
>> executing this line:
>>
>> /master/hadoop/hive/build.xml:93: The following error occurred while
>> executing this line:
>>
>> /master/hadoop/hive/shims/build.xml:55: The following error occurred while
>> executing this line:
>>
>> /master/hadoop/hive/build-common.xml:180: impossible to configure
>> ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml :
>> java.text.ParseException: failed to load settings from
>> file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL
>> to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager
>>
>>
>>
>> Regards
>>
>> Vidyasagar N V
>>
>>
>>
>> *From:* Carl Steinbach [mailto:carl@cloudera.com]
>> *Sent:* Thursday, February 11, 2010 6:06 PM
>>
>>
>> *To:* hive-user@hadoop.apache.org
>> *Subject:* Re: Hive Installation Error
>>
>>
>>
>> Sorry, I forgot to include one command:
>>
>> % wget
>> http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
>>
>> On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com>
>> wrote:
>>
>> Hi Vidyasagar,
>>
>> Try doing the following:
>>
>>
>>
>> % cd ~/.ant/cache/hadoop/core/sources
>>
>> % wget
>> http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
>> % wget
>> http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
>> % wget
>> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
>>
>>
>> % wget
>> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
>>
>> % cd /master/hive
>> % svn update
>>
>>
>> % ant -Dhadoop.version=0.20.1 clean package
>>
>> On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <
>> vidyasagar.nallapati@onmobile.com> wrote:
>>
>> Hi Carl,
>>
>>
>>
>> I am still getting an error as
>>
>>
>>
>> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>>
>> Buildfile: build.xml
>>
>>
>>
>> clean:
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: anttasks
>>
>>    [delete] Deleting directory /master/hive/build/anttasks
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: shims
>>
>>    [delete] Deleting directory /master/hive/build/shims
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: common
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: serde
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: metastore
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: ql
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: cli
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: contrib
>>
>>
>>
>> clean:
>>
>>
>>
>> clean:
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: hwi
>>
>>
>>
>> clean:
>>
>>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
>> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>>
>>    [delete] Deleting directory /master/hive/build
>>
>>
>>
>> jar:
>>
>>
>>
>> create-dirs:
>>
>>     [mkdir] Created dir: /master/hive/build
>>
>>     [mkdir] Created dir: /master/hive/build/shims
>>
>>     [mkdir] Created dir: /master/hive/build/shims/classes
>>
>>     [mkdir] Created dir: /master/hive/build/jexl/classes
>>
>>     [mkdir] Created dir: /master/hive/build/hadoopcore
>>
>>     [mkdir] Created dir: /master/hive/build/shims/test
>>
>>     [mkdir] Created dir: /master/hive/build/shims/test/src
>>
>>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>>
>>
>>
>> compile-ant-tasks:
>>
>>
>>
>> create-dirs:
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/test
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>>
>>
>>
>> init:
>>
>>
>>
>> compile:
>>
>>      [echo] Compiling: anttasks
>>
>>     [javac] Compiling 2 source files to
>> /master/hive/build/anttasks/classes
>>
>>     [javac] Note:
>> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
>> overrides a deprecated API.
>>
>>     [javac] Note: Recompile with -Xlint:deprecation for details.
>>
>>
>>
>> deploy-ant-tasks:
>>
>>
>>
>> create-dirs:
>>
>>
>>
>> init:
>>
>>
>>
>> compile:
>>
>>      [echo] Compiling: anttasks
>>
>>
>>
>> jar:
>>
>>      [copy] Copying 1 file to
>> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>>
>>       [jar] Building jar:
>> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>>
>>
>>
>> init:
>>
>>
>>
>> compile:
>>
>>
>>
>> ivy-init-dirs:
>>
>>     [mkdir] Created dir: /master/hive/build/ivy
>>
>>     [mkdir] Created dir: /master/hive/build/ivy/lib
>>
>>     [mkdir] Created dir: /master/hive/build/ivy/report
>>
>>     [mkdir] Created dir: /master/hive/build/ivy/maven
>>
>>
>>
>> ivy-download:
>>
>>       [get] Getting:
>> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>>
>>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>>
>>
>>
>> ivy-probe-antlib:
>>
>>
>>
>> ivy-init-antlib:
>>
>>
>>
>> ivy-init:
>>
>>
>>
>> ivy-retrieve-hadoop-source:
>>
>> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
>> http://ant.apache.org/ivy/ ::
>>
>> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>>
>> [ivy:retrieve] :: resolving dependencies ::
>> org.apache.hadoop.hive#shims;working@ph2
>>
>> [ivy:retrieve]  confs: [default]
>>
>> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>>
>> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl
>> 3ms
>>
>>
>> ---------------------------------------------------------------------
>>
>>         |                  |            modules            ||
>> artifacts   |
>>
>>         |       conf       | number| search|dwnlded|evicted||
>> number|dwnlded|
>>
>>
>> ---------------------------------------------------------------------
>>
>>         |      default     |   1   |   0   |   0   |   0   ||   1   |
>> 0   |
>>
>>
>> ---------------------------------------------------------------------
>>
>> [ivy:retrieve]
>>
>> [ivy:retrieve] :: problems summary ::
>>
>> [ivy:retrieve] :::: ERRORS
>>
>> [ivy:retrieve]  Server access Error: Connection timed out url=
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>>
>> [ivy:retrieve]  Server access Error: Connection timed out url=
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>>
>> [ivy:retrieve]
>>
>> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>>
>> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>>
>> [ivy:retrieve]  confs: [default]
>>
>> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>>
>>
>>
>> install-hadoopcore-internal:
>>
>>
>>
>> BUILD FAILED
>>
>> /master/hive/build.xml:148: The following error occurred while executing
>> this line:
>>
>> /master/hive/build.xml:93: The following error occurred while executing
>> this line:
>>
>> /master/hive/shims/build.xml:64: The following error occurred while
>> executing this line:
>>
>> /master/hive/build-common.xml:178: Error while expanding
>> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>>
>>
>>
>> Can you please help me on this.
>>
>>
>>
>> Regards
>>
>> Vidyasagar N V
>>
>>
>>
>> *From:* Carl Steinbach [mailto:carl@cloudera.com]
>> *Sent:* Thursday, February 11, 2010 4:50 PM
>>
>>
>> *To:* hive-user@hadoop.apache.org
>> *Subject:* Re: Hive Installation Error
>>
>>
>>
>> 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 <
>> vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
>> Sent: Thursday, February 11, 2010 2:26 PM
>> To: hive-user@hadoop.apache.org
>>
>> 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
>> <vi...@onmobile.com> 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.
>>
>>
>>
>>
>>  ------------------------------
>>
>> 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.
>>
>>
>>
>>
>>
>>
>>  ------------------------------
>>
>> 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.
>>
>>
>>
>>
>>  ------------------------------
>>
>> 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.
>>
>>
>>
>> ------------------------------
>> 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.
>>
>
>

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Vidyasagar,

Please open the file ivy/ivysettings.xml in your Hive source directory and
locate the following line:

-    <chain name="default" dual="true" checkmodified="true"
changingPattern=".*SNAPSHOT">

then change the checkmodified value to "false":

+    <chain name="default" dual="true" checkmodified="false"
changingPattern=".*SNAPSHOT">

I think this change should fix your problem. If it does not, please run "ant
-v package > ant.log"
and send the ant.log file directly to me as an attachment (please do not
include hive-user), and
I will see if I can figure out what is wrong.

Thanks.

Carl


On Sun, Feb 14, 2010 at 6:18 PM, Vidyasagar Venkata Nallapati <
vidyasagar.nallapati@onmobile.com> wrote:

>  Hi Carl,
>
>
>
> This is my output,
>
>
>
> phoenix@ph2:~$ ls -alt ~/.ant/cache/hadoop/core/sources
>
> total 127176
>
> drwxr-xr-x 3 phoenix phoenix     4096 2010-02-14 23:03 ..
>
> drwxr-xr-x 2 phoenix phoenix     4096 2010-02-14 22:33 .
>
> -rw-r--r-- 1 phoenix phoenix 42813980 2009-04-09 10:53 hadoop-0.20.0.tar.gz
>
> -rw-r--r-- 1 phoenix phoenix 30705253 2009-01-23 04:44 hadoop-0.18.3.tar.gz
>
> -rw-r--r-- 1 phoenix phoenix 42266180 2008-11-14 08:46 hadoop-0.19.0.tar.gz
>
> -rw-r--r-- 1 phoenix phoenix 14427013 2008-08-21 04:27
> hadoop-0.17.2.1.tar.gz
>
> phoenix@ph2:~$ echo $ANT_OPTS
>
> -Dhttp.proxyHost=172.16.28.60 -Dhttp.proxyPort=8000
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Monday, February 15, 2010 7:07 AM
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> Hi Vidyasagar,
>
> Please run the following diagnostic commands and send us the results:
>
> % ls -alt ~/.ant/cache/hadoop/core/sources
> % echo $ANT_OPTS
>
> Thanks.
>
> Carl
>
>  On Sun, Feb 14, 2010 at 10:07 AM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am still getting error with the pom of the hadoop builds, how can I solve
> these?
>
>
>
> [ivy:retrieve]          tried
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>
> [ivy:retrieve] ERROR: Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>
> [ivy:retrieve]          tried
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz
>
>
>
> Regards
>
> Vidyasagar N V
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Sunday, February 14, 2010 12:46 PM
>
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> The answer to your problem is here:
> http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html
>
> Carl
>
> On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am getting an error as
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml
>
>
>
> BUILD FAILED
>
> /master/hadoop/hive/build.xml:148: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build.xml:93: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/shims/build.xml:55: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build-common.xml:180: impossible to configure
> ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml :
> java.text.ParseException: failed to load settings from
> file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL
> to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 6:06 PM
>
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> Sorry, I forgot to include one command:
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
>
> On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com> wrote:
>
> Hi Vidyasagar,
>
> Try doing the following:
>
>
>
> % cd ~/.ant/cache/hadoop/core/sources
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
>
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
>
> % cd /master/hive
> % svn update
>
>
> % ant -Dhadoop.version=0.20.1 clean package
>
> On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am still getting an error as
>
>
>
> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>
> Buildfile: build.xml
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: anttasks
>
>    [delete] Deleting directory /master/hive/build/anttasks
>
>
>
> clean:
>
>      [echo] Cleaning: shims
>
>    [delete] Deleting directory /master/hive/build/shims
>
>
>
> clean:
>
>      [echo] Cleaning: common
>
>
>
> clean:
>
>      [echo] Cleaning: serde
>
>
>
> clean:
>
>      [echo] Cleaning: metastore
>
>
>
> clean:
>
>      [echo] Cleaning: ql
>
>
>
> clean:
>
>      [echo] Cleaning: cli
>
>
>
> clean:
>
>      [echo] Cleaning: contrib
>
>
>
> clean:
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: hwi
>
>
>
> clean:
>
>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>
>    [delete] Deleting directory /master/hive/build
>
>
>
> jar:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build
>
>     [mkdir] Created dir: /master/hive/build/shims
>
>     [mkdir] Created dir: /master/hive/build/shims/classes
>
>     [mkdir] Created dir: /master/hive/build/jexl/classes
>
>     [mkdir] Created dir: /master/hive/build/hadoopcore
>
>     [mkdir] Created dir: /master/hive/build/shims/test
>
>     [mkdir] Created dir: /master/hive/build/shims/test/src
>
>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>
>
>
> compile-ant-tasks:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build/anttasks
>
>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>     [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
>
>     [javac] Note:
> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
> overrides a deprecated API.
>
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>
>
>
> deploy-ant-tasks:
>
>
>
> create-dirs:
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>
>
> jar:
>
>      [copy] Copying 1 file to
> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>
>       [jar] Building jar:
> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>
>
>
> init:
>
>
>
> compile:
>
>
>
> ivy-init-dirs:
>
>     [mkdir] Created dir: /master/hive/build/ivy
>
>     [mkdir] Created dir: /master/hive/build/ivy/lib
>
>     [mkdir] Created dir: /master/hive/build/ivy/report
>
>     [mkdir] Created dir: /master/hive/build/ivy/maven
>
>
>
> ivy-download:
>
>       [get] Getting:
> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>
>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>
>
>
> ivy-probe-antlib:
>
>
>
> ivy-init-antlib:
>
>
>
> ivy-init:
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>
> [ivy:retrieve] :: resolving dependencies ::
> org.apache.hadoop.hive#shims;working@ph2
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>
> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
>
>
> ---------------------------------------------------------------------
>
>         |                  |            modules            ||   artifacts
> |
>
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>
>
> ---------------------------------------------------------------------
>
>         |      default     |   1   |   0   |   0   |   0   ||   1   |   0
> |
>
>
> ---------------------------------------------------------------------
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve] :::: ERRORS
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>
>
>
> install-hadoopcore-internal:
>
>
>
> BUILD FAILED
>
> /master/hive/build.xml:148: The following error occurred while executing
> this line:
>
> /master/hive/build.xml:93: The following error occurred while executing
> this line:
>
> /master/hive/shims/build.xml:64: The following error occurred while
> executing this line:
>
> /master/hive/build-common.xml:178: Error while expanding
> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>
>
>
> Can you please help me on this.
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 4:50 PM
>
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> 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 <
> vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: hive-user@hadoop.apache.org
>
> 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
> <vi...@onmobile.com> 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.
>
>
>
>
>  ------------------------------
>
> 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.
>
>
>
>
>
>
>  ------------------------------
>
> 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.
>
>
>
>
>  ------------------------------
>
> 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.
>
>
>
> ------------------------------
> 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.
>

RE: Hive Installation Error

Posted by Vidyasagar Venkata Nallapati <vi...@onmobile.com>.
Hi Carl,

This is my output,

phoenix@ph2:~$ ls -alt ~/.ant/cache/hadoop/core/sources
total 127176
drwxr-xr-x 3 phoenix phoenix     4096 2010-02-14 23:03 ..
drwxr-xr-x 2 phoenix phoenix     4096 2010-02-14 22:33 .
-rw-r--r-- 1 phoenix phoenix 42813980 2009-04-09 10:53 hadoop-0.20.0.tar.gz
-rw-r--r-- 1 phoenix phoenix 30705253 2009-01-23 04:44 hadoop-0.18.3.tar.gz
-rw-r--r-- 1 phoenix phoenix 42266180 2008-11-14 08:46 hadoop-0.19.0.tar.gz
-rw-r--r-- 1 phoenix phoenix 14427013 2008-08-21 04:27 hadoop-0.17.2.1.tar.gz
phoenix@ph2:~$ echo $ANT_OPTS
-Dhttp.proxyHost=172.16.28.60 -Dhttp.proxyPort=8000

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com]
Sent: Monday, February 15, 2010 7:07 AM
To: hive-user@hadoop.apache.org
Subject: Re: Hive Installation Error

Hi Vidyasagar,

Please run the following diagnostic commands and send us the results:

% ls -alt ~/.ant/cache/hadoop/core/sources
% echo $ANT_OPTS

Thanks.

Carl

On Sun, Feb 14, 2010 at 10:07 AM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am still getting error with the pom of the hadoop builds, how can I solve these?

[ivy:retrieve]          tried https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve] ERROR: Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve]          tried https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz

Regards
Vidyasagar N V
From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Sunday, February 14, 2010 12:46 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

The answer to your problem is here: http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html

Carl
On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am getting an error as

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml

BUILD FAILED
/master/hadoop/hive/build.xml:148: The following error occurred while executing this line:
/master/hadoop/hive/build.xml:93: The following error occurred while executing this line:
/master/hadoop/hive/shims/build.xml:55: The following error occurred while executing this line:
/master/hadoop/hive/build-common.xml:180: impossible to configure ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml : java.text.ParseException: failed to load settings from file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 6:06 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

Sorry, I forgot to include one command:

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com>> wrote:
Hi Vidyasagar,

Try doing the following:


% cd ~/.ant/cache/hadoop/core/sources
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
% cd /master/hive
% svn update

% ant -Dhadoop.version=0.20.1 clean package
On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am still getting an error as

phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
Buildfile: build.xml

clean:

clean:
     [echo] Cleaning: anttasks
   [delete] Deleting directory /master/hive/build/anttasks

clean:
     [echo] Cleaning: shims
   [delete] Deleting directory /master/hive/build/shims

clean:
     [echo] Cleaning: common

clean:
     [echo] Cleaning: serde

clean:
     [echo] Cleaning: metastore

clean:
     [echo] Cleaning: ql

clean:
     [echo] Cleaning: cli

clean:
     [echo] Cleaning: contrib

clean:

clean:

clean:
     [echo] Cleaning: hwi

clean:
     [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
   [delete] Deleting directory /master/hive/build

jar:

create-dirs:
    [mkdir] Created dir: /master/hive/build
    [mkdir] Created dir: /master/hive/build/shims
    [mkdir] Created dir: /master/hive/build/shims/classes
    [mkdir] Created dir: /master/hive/build/jexl/classes
    [mkdir] Created dir: /master/hive/build/hadoopcore
    [mkdir] Created dir: /master/hive/build/shims/test
    [mkdir] Created dir: /master/hive/build/shims/test/src
    [mkdir] Created dir: /master/hive/build/shims/test/classes

compile-ant-tasks:

create-dirs:
    [mkdir] Created dir: /master/hive/build/anttasks
    [mkdir] Created dir: /master/hive/build/anttasks/classes
    [mkdir] Created dir: /master/hive/build/anttasks/test
    [mkdir] Created dir: /master/hive/build/anttasks/test/src
    [mkdir] Created dir: /master/hive/build/anttasks/test/classes

init:

compile:
     [echo] Compiling: anttasks
    [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
    [javac] Note: /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

deploy-ant-tasks:

create-dirs:

init:

compile:
     [echo] Compiling: anttasks

jar:
     [copy] Copying 1 file to /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
      [jar] Building jar: /master/hive/build/anttasks/hive-anttasks-0.6.0.jar

init:

compile:

ivy-init-dirs:
    [mkdir] Created dir: /master/hive/build/ivy
    [mkdir] Created dir: /master/hive/build/ivy/lib
    [mkdir] Created dir: /master/hive/build/ivy/report
    [mkdir] Created dir: /master/hive/build/ivy/maven

ivy-download:
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
      [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.hadoop.hive#shims;working@ph2
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
[ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   0   |   0   |   0   ||   1   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)

install-hadoopcore-internal:

BUILD FAILED
/master/hive/build.xml:148: The following error occurred while executing this line:
/master/hive/build.xml:93: The following error occurred while executing this line:
/master/hive/shims/build.xml:64: The following error occurred while executing this line:
/master/hive/build-common.xml:178: Error while expanding /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz

Can you please help me on this.

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 4:50 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

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 <vi...@onmobile.com>> 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:zshao9@gmail.com<ma...@gmail.com>]
Sent: Thursday, February 11, 2010 2:26 PM
To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
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
<vi...@onmobile.com>> 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.


________________________________
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.



________________________________
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.


________________________________
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.


________________________________
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.

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Vidyasagar,

Please run the following diagnostic commands and send us the results:

% ls -alt ~/.ant/cache/hadoop/core/sources
% echo $ANT_OPTS

Thanks.

Carl


On Sun, Feb 14, 2010 at 10:07 AM, Vidyasagar Venkata Nallapati <
vidyasagar.nallapati@onmobile.com> wrote:

>  Hi Carl,
>
>
>
> I am still getting error with the pom of the hadoop builds, how can I solve
> these?
>
>
>
> [ivy:retrieve]          tried
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>
> [ivy:retrieve] ERROR: Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
>
> [ivy:retrieve]          tried
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz
>
>
>
> Regards
>
> Vidyasagar N V
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Sunday, February 14, 2010 12:46 PM
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> The answer to your problem is here:
> http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html
>
> Carl
>
> On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am getting an error as
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml
>
>
>
> BUILD FAILED
>
> /master/hadoop/hive/build.xml:148: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build.xml:93: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/shims/build.xml:55: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build-common.xml:180: impossible to configure
> ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml :
> java.text.ParseException: failed to load settings from
> file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL
> to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 6:06 PM
>
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> Sorry, I forgot to include one command:
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
>
> On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com> wrote:
>
> Hi Vidyasagar,
>
> Try doing the following:
>
>
>
> % cd ~/.ant/cache/hadoop/core/sources
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
>
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
>
> % cd /master/hive
> % svn update
>
>
> % ant -Dhadoop.version=0.20.1 clean package
>
>    On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am still getting an error as
>
>
>
> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>
> Buildfile: build.xml
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: anttasks
>
>    [delete] Deleting directory /master/hive/build/anttasks
>
>
>
> clean:
>
>      [echo] Cleaning: shims
>
>    [delete] Deleting directory /master/hive/build/shims
>
>
>
> clean:
>
>      [echo] Cleaning: common
>
>
>
> clean:
>
>      [echo] Cleaning: serde
>
>
>
> clean:
>
>      [echo] Cleaning: metastore
>
>
>
> clean:
>
>      [echo] Cleaning: ql
>
>
>
> clean:
>
>      [echo] Cleaning: cli
>
>
>
> clean:
>
>      [echo] Cleaning: contrib
>
>
>
> clean:
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: hwi
>
>
>
> clean:
>
>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>
>    [delete] Deleting directory /master/hive/build
>
>
>
> jar:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build
>
>     [mkdir] Created dir: /master/hive/build/shims
>
>     [mkdir] Created dir: /master/hive/build/shims/classes
>
>     [mkdir] Created dir: /master/hive/build/jexl/classes
>
>     [mkdir] Created dir: /master/hive/build/hadoopcore
>
>     [mkdir] Created dir: /master/hive/build/shims/test
>
>     [mkdir] Created dir: /master/hive/build/shims/test/src
>
>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>
>
>
> compile-ant-tasks:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build/anttasks
>
>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>     [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
>
>     [javac] Note:
> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
> overrides a deprecated API.
>
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>
>
>
> deploy-ant-tasks:
>
>
>
> create-dirs:
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>
>
> jar:
>
>      [copy] Copying 1 file to
> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>
>       [jar] Building jar:
> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>
>
>
> init:
>
>
>
> compile:
>
>
>
> ivy-init-dirs:
>
>     [mkdir] Created dir: /master/hive/build/ivy
>
>     [mkdir] Created dir: /master/hive/build/ivy/lib
>
>     [mkdir] Created dir: /master/hive/build/ivy/report
>
>     [mkdir] Created dir: /master/hive/build/ivy/maven
>
>
>
> ivy-download:
>
>       [get] Getting:
> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>
>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>
>
>
> ivy-probe-antlib:
>
>
>
> ivy-init-antlib:
>
>
>
> ivy-init:
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>
> [ivy:retrieve] :: resolving dependencies ::
> org.apache.hadoop.hive#shims;working@ph2
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>
> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
>
>
> ---------------------------------------------------------------------
>
>         |                  |            modules            ||   artifacts
> |
>
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>
>
> ---------------------------------------------------------------------
>
>         |      default     |   1   |   0   |   0   |   0   ||   1   |   0
> |
>
>
> ---------------------------------------------------------------------
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve] :::: ERRORS
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>
>
>
> install-hadoopcore-internal:
>
>
>
> BUILD FAILED
>
> /master/hive/build.xml:148: The following error occurred while executing
> this line:
>
> /master/hive/build.xml:93: The following error occurred while executing
> this line:
>
> /master/hive/shims/build.xml:64: The following error occurred while
> executing this line:
>
> /master/hive/build-common.xml:178: Error while expanding
> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>
>
>
> Can you please help me on this.
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 4:50 PM
>
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> 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 <
> vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: hive-user@hadoop.apache.org
>
> 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
> <vi...@onmobile.com> 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.
>
>
>
>
>  ------------------------------
>
> 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.
>
>
>
>
>
>
>  ------------------------------
>
> 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.
>
>
>
> ------------------------------
> 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.
>

RE: Hive Installation Error

Posted by Vidyasagar Venkata Nallapati <vi...@onmobile.com>.
Hi Carl,

I am still getting error with the pom of the hadoop builds, how can I solve these?

[ivy:retrieve]          tried https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve] ERROR: Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/core-0.17.2.1.pom
[ivy:retrieve]          tried https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.17.2.1/hadoop-0.17.2.1.tar.gz

Regards
Vidyasagar N V
From: Carl Steinbach [mailto:carl@cloudera.com]
Sent: Sunday, February 14, 2010 12:46 PM
To: hive-user@hadoop.apache.org
Subject: Re: Hive Installation Error

The answer to your problem is here: http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html

Carl
On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am getting an error as

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml

BUILD FAILED
/master/hadoop/hive/build.xml:148: The following error occurred while executing this line:
/master/hadoop/hive/build.xml:93: The following error occurred while executing this line:
/master/hadoop/hive/shims/build.xml:55: The following error occurred while executing this line:
/master/hadoop/hive/build-common.xml:180: impossible to configure ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml : java.text.ParseException: failed to load settings from file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 6:06 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

Sorry, I forgot to include one command:

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com>> wrote:
Hi Vidyasagar,

Try doing the following:


% cd ~/.ant/cache/hadoop/core/sources
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
% cd /master/hive
% svn update

% ant -Dhadoop.version=0.20.1 clean package

On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am still getting an error as

phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
Buildfile: build.xml

clean:

clean:
     [echo] Cleaning: anttasks
   [delete] Deleting directory /master/hive/build/anttasks

clean:
     [echo] Cleaning: shims
   [delete] Deleting directory /master/hive/build/shims

clean:
     [echo] Cleaning: common

clean:
     [echo] Cleaning: serde

clean:
     [echo] Cleaning: metastore

clean:
     [echo] Cleaning: ql

clean:
     [echo] Cleaning: cli

clean:
     [echo] Cleaning: contrib

clean:

clean:

clean:
     [echo] Cleaning: hwi

clean:
     [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
   [delete] Deleting directory /master/hive/build

jar:

create-dirs:
    [mkdir] Created dir: /master/hive/build
    [mkdir] Created dir: /master/hive/build/shims
    [mkdir] Created dir: /master/hive/build/shims/classes
    [mkdir] Created dir: /master/hive/build/jexl/classes
    [mkdir] Created dir: /master/hive/build/hadoopcore
    [mkdir] Created dir: /master/hive/build/shims/test
    [mkdir] Created dir: /master/hive/build/shims/test/src
    [mkdir] Created dir: /master/hive/build/shims/test/classes

compile-ant-tasks:

create-dirs:
    [mkdir] Created dir: /master/hive/build/anttasks
    [mkdir] Created dir: /master/hive/build/anttasks/classes
    [mkdir] Created dir: /master/hive/build/anttasks/test
    [mkdir] Created dir: /master/hive/build/anttasks/test/src
    [mkdir] Created dir: /master/hive/build/anttasks/test/classes

init:

compile:
     [echo] Compiling: anttasks
    [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
    [javac] Note: /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

deploy-ant-tasks:

create-dirs:

init:

compile:
     [echo] Compiling: anttasks

jar:
     [copy] Copying 1 file to /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
      [jar] Building jar: /master/hive/build/anttasks/hive-anttasks-0.6.0.jar

init:

compile:

ivy-init-dirs:
    [mkdir] Created dir: /master/hive/build/ivy
    [mkdir] Created dir: /master/hive/build/ivy/lib
    [mkdir] Created dir: /master/hive/build/ivy/report
    [mkdir] Created dir: /master/hive/build/ivy/maven

ivy-download:
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
      [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.hadoop.hive#shims;working@ph2
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
[ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   0   |   0   |   0   ||   1   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)

install-hadoopcore-internal:

BUILD FAILED
/master/hive/build.xml:148: The following error occurred while executing this line:
/master/hive/build.xml:93: The following error occurred while executing this line:
/master/hive/shims/build.xml:64: The following error occurred while executing this line:
/master/hive/build-common.xml:178: Error while expanding /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz

Can you please help me on this.

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 4:50 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

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 <vi...@onmobile.com>> 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:zshao9@gmail.com<ma...@gmail.com>]
Sent: Thursday, February 11, 2010 2:26 PM
To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
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
<vi...@onmobile.com>> 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.


________________________________
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.



________________________________
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.


________________________________
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.

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
The answer to your problem is here:
http://www.mail-archive.com/hive-user@hadoop.apache.org/msg02361.html

Carl

On Sat, Feb 13, 2010 at 11:04 PM, Vidyasagar Venkata Nallapati <
vidyasagar.nallapati@onmobile.com> wrote:

>  Hi Carl,
>
>
>
> I am getting an error as
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml
>
>
>
> BUILD FAILED
>
> /master/hadoop/hive/build.xml:148: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build.xml:93: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/shims/build.xml:55: The following error occurred while
> executing this line:
>
> /master/hadoop/hive/build-common.xml:180: impossible to configure
> ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml :
> java.text.ParseException: failed to load settings from
> file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL
> to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 6:06 PM
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> Sorry, I forgot to include one command:
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
>
> On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com> wrote:
>
> Hi Vidyasagar,
>
> Try doing the following:
>
>
>
> % cd ~/.ant/cache/hadoop/core/sources
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
>
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
>
> % cd /master/hive
> % svn update
>
>
> % ant -Dhadoop.version=0.20.1 clean package
>
>
>    On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
> Hi Carl,
>
>
>
> I am still getting an error as
>
>
>
> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>
> Buildfile: build.xml
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: anttasks
>
>    [delete] Deleting directory /master/hive/build/anttasks
>
>
>
> clean:
>
>      [echo] Cleaning: shims
>
>    [delete] Deleting directory /master/hive/build/shims
>
>
>
> clean:
>
>      [echo] Cleaning: common
>
>
>
> clean:
>
>      [echo] Cleaning: serde
>
>
>
> clean:
>
>      [echo] Cleaning: metastore
>
>
>
> clean:
>
>      [echo] Cleaning: ql
>
>
>
> clean:
>
>      [echo] Cleaning: cli
>
>
>
> clean:
>
>      [echo] Cleaning: contrib
>
>
>
> clean:
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: hwi
>
>
>
> clean:
>
>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>
>    [delete] Deleting directory /master/hive/build
>
>
>
> jar:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build
>
>     [mkdir] Created dir: /master/hive/build/shims
>
>     [mkdir] Created dir: /master/hive/build/shims/classes
>
>     [mkdir] Created dir: /master/hive/build/jexl/classes
>
>     [mkdir] Created dir: /master/hive/build/hadoopcore
>
>     [mkdir] Created dir: /master/hive/build/shims/test
>
>     [mkdir] Created dir: /master/hive/build/shims/test/src
>
>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>
>
>
> compile-ant-tasks:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build/anttasks
>
>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>     [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
>
>     [javac] Note:
> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
> overrides a deprecated API.
>
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>
>
>
> deploy-ant-tasks:
>
>
>
> create-dirs:
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>
>
> jar:
>
>      [copy] Copying 1 file to
> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>
>       [jar] Building jar:
> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>
>
>
> init:
>
>
>
> compile:
>
>
>
> ivy-init-dirs:
>
>     [mkdir] Created dir: /master/hive/build/ivy
>
>     [mkdir] Created dir: /master/hive/build/ivy/lib
>
>     [mkdir] Created dir: /master/hive/build/ivy/report
>
>     [mkdir] Created dir: /master/hive/build/ivy/maven
>
>
>
> ivy-download:
>
>       [get] Getting:
> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>
>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>
>
>
> ivy-probe-antlib:
>
>
>
> ivy-init-antlib:
>
>
>
> ivy-init:
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>
> [ivy:retrieve] :: resolving dependencies ::
> org.apache.hadoop.hive#shims;working@ph2
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>
> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
>
>
> ---------------------------------------------------------------------
>
>         |                  |            modules            ||   artifacts
> |
>
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>
>
> ---------------------------------------------------------------------
>
>         |      default     |   1   |   0   |   0   |   0   ||   1   |   0
> |
>
>
> ---------------------------------------------------------------------
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve] :::: ERRORS
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>
>
>
> install-hadoopcore-internal:
>
>
>
> BUILD FAILED
>
> /master/hive/build.xml:148: The following error occurred while executing
> this line:
>
> /master/hive/build.xml:93: The following error occurred while executing
> this line:
>
> /master/hive/shims/build.xml:64: The following error occurred while
> executing this line:
>
> /master/hive/build-common.xml:178: Error while expanding
> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>
>
>
> Can you please help me on this.
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 4:50 PM
>
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> 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 <
> vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: hive-user@hadoop.apache.org
>
> 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
> <vi...@onmobile.com> 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.
>
>
>
>
>  ------------------------------
>
> 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.
>
>
>
>
>
> ------------------------------
> 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.
>

RE: Hive Installation Error

Posted by Vidyasagar Venkata Nallapati <vi...@onmobile.com>.
Hi Carl,

I am getting an error as

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hadoop/hive/ivy/ivysettings.xml

BUILD FAILED
/master/hadoop/hive/build.xml:148: The following error occurred while executing this line:
/master/hadoop/hive/build.xml:93: The following error occurred while executing this line:
/master/hadoop/hive/shims/build.xml:55: The following error occurred while executing this line:
/master/hadoop/hive/build-common.xml:180: impossible to configure ivy:settings with given file: /master/hadoop/hive/ivy/ivysettings.xml : java.text.ParseException: failed to load settings from file:/master/hadoop/hive/ivy/ivysettings.xml: impossible to set defaultTTL to eternal on class org.apache.ivy.core.cache.DefaultRepositoryCacheManager

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com]
Sent: Thursday, February 11, 2010 6:06 PM
To: hive-user@hadoop.apache.org
Subject: Re: Hive Installation Error

Sorry, I forgot to include one command:

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz
On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com>> wrote:
Hi Vidyasagar,

Try doing the following:


% cd ~/.ant/cache/hadoop/core/sources
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz

% wget http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
% cd /master/hive
% svn update

% ant -Dhadoop.version=0.20.1 clean package


On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <vi...@onmobile.com>> wrote:
Hi Carl,

I am still getting an error as

phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
Buildfile: build.xml

clean:

clean:
     [echo] Cleaning: anttasks
   [delete] Deleting directory /master/hive/build/anttasks

clean:
     [echo] Cleaning: shims
   [delete] Deleting directory /master/hive/build/shims

clean:
     [echo] Cleaning: common

clean:
     [echo] Cleaning: serde

clean:
     [echo] Cleaning: metastore

clean:
     [echo] Cleaning: ql

clean:
     [echo] Cleaning: cli

clean:
     [echo] Cleaning: contrib

clean:

clean:

clean:
     [echo] Cleaning: hwi

clean:
     [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
   [delete] Deleting directory /master/hive/build

jar:

create-dirs:
    [mkdir] Created dir: /master/hive/build
    [mkdir] Created dir: /master/hive/build/shims
    [mkdir] Created dir: /master/hive/build/shims/classes
    [mkdir] Created dir: /master/hive/build/jexl/classes
    [mkdir] Created dir: /master/hive/build/hadoopcore
    [mkdir] Created dir: /master/hive/build/shims/test
    [mkdir] Created dir: /master/hive/build/shims/test/src
    [mkdir] Created dir: /master/hive/build/shims/test/classes

compile-ant-tasks:

create-dirs:
    [mkdir] Created dir: /master/hive/build/anttasks
    [mkdir] Created dir: /master/hive/build/anttasks/classes
    [mkdir] Created dir: /master/hive/build/anttasks/test
    [mkdir] Created dir: /master/hive/build/anttasks/test/src
    [mkdir] Created dir: /master/hive/build/anttasks/test/classes

init:

compile:
     [echo] Compiling: anttasks
    [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
    [javac] Note: /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

deploy-ant-tasks:

create-dirs:

init:

compile:
     [echo] Compiling: anttasks

jar:
     [copy] Copying 1 file to /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
      [jar] Building jar: /master/hive/build/anttasks/hive-anttasks-0.6.0.jar

init:

compile:

ivy-init-dirs:
    [mkdir] Created dir: /master/hive/build/ivy
    [mkdir] Created dir: /master/hive/build/ivy/lib
    [mkdir] Created dir: /master/hive/build/ivy/report
    [mkdir] Created dir: /master/hive/build/ivy/maven

ivy-download:
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
      [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.hadoop.hive#shims;working@ph2
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
[ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   0   |   0   |   0   ||   1   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)

install-hadoopcore-internal:

BUILD FAILED
/master/hive/build.xml:148: The following error occurred while executing this line:
/master/hive/build.xml:93: The following error occurred while executing this line:
/master/hive/shims/build.xml:64: The following error occurred while executing this line:
/master/hive/build-common.xml:178: Error while expanding /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz

Can you please help me on this.

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com<ma...@cloudera.com>]
Sent: Thursday, February 11, 2010 4:50 PM

To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
Subject: Re: Hive Installation Error

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 <vi...@onmobile.com>> 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:zshao9@gmail.com<ma...@gmail.com>]
Sent: Thursday, February 11, 2010 2:26 PM
To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
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
<vi...@onmobile.com>> 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.


________________________________
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.



________________________________
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.

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
Sorry, I forgot to include one command:

% wget
http://archive.apache.org/dist/hadoop/core/hadoop-0.19.0/hadoop-0.19.0.tar.gz

On Thu, Feb 11, 2010 at 4:34 AM, Carl Steinbach <ca...@cloudera.com> wrote:

> Hi Vidyasagar,
>
> Try doing the following:
>
>
> % cd ~/.ant/cache/hadoop/core/sources
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
>
> % wget
> http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
> % cd /master/hive
> % svn update
>
> % ant -Dhadoop.version=0.20.1 clean package
>
>
>
> On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <
> vidyasagar.nallapati@onmobile.com> wrote:
>
>>  Hi Carl,
>>
>>
>>
>> I am still getting an error as
>>
>>
>>
>> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>>
>> Buildfile: build.xml
>>
>>
>>
>> clean:
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: anttasks
>>
>>    [delete] Deleting directory /master/hive/build/anttasks
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: shims
>>
>>    [delete] Deleting directory /master/hive/build/shims
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: common
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: serde
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: metastore
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: ql
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: cli
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: contrib
>>
>>
>>
>> clean:
>>
>>
>>
>> clean:
>>
>>
>>
>> clean:
>>
>>      [echo] Cleaning: hwi
>>
>>
>>
>> clean:
>>
>>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
>> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>>
>>    [delete] Deleting directory /master/hive/build
>>
>>
>>
>> jar:
>>
>>
>>
>> create-dirs:
>>
>>     [mkdir] Created dir: /master/hive/build
>>
>>     [mkdir] Created dir: /master/hive/build/shims
>>
>>     [mkdir] Created dir: /master/hive/build/shims/classes
>>
>>     [mkdir] Created dir: /master/hive/build/jexl/classes
>>
>>     [mkdir] Created dir: /master/hive/build/hadoopcore
>>
>>     [mkdir] Created dir: /master/hive/build/shims/test
>>
>>     [mkdir] Created dir: /master/hive/build/shims/test/src
>>
>>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>>
>>
>>
>> compile-ant-tasks:
>>
>>
>>
>> create-dirs:
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/test
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>>
>>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>>
>>
>>
>> init:
>>
>>
>>
>> compile:
>>
>>      [echo] Compiling: anttasks
>>
>>     [javac] Compiling 2 source files to
>> /master/hive/build/anttasks/classes
>>
>>     [javac] Note:
>> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
>> overrides a deprecated API.
>>
>>     [javac] Note: Recompile with -Xlint:deprecation for details.
>>
>>
>>
>> deploy-ant-tasks:
>>
>>
>>
>> create-dirs:
>>
>>
>>
>> init:
>>
>>
>>
>> compile:
>>
>>      [echo] Compiling: anttasks
>>
>>
>>
>> jar:
>>
>>      [copy] Copying 1 file to
>> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>>
>>       [jar] Building jar:
>> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>>
>>
>>
>> init:
>>
>>
>>
>> compile:
>>
>>
>>
>> ivy-init-dirs:
>>
>>     [mkdir] Created dir: /master/hive/build/ivy
>>
>>     [mkdir] Created dir: /master/hive/build/ivy/lib
>>
>>     [mkdir] Created dir: /master/hive/build/ivy/report
>>
>>     [mkdir] Created dir: /master/hive/build/ivy/maven
>>
>>
>>
>> ivy-download:
>>
>>       [get] Getting:
>> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>>
>>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>>
>>
>>
>> ivy-probe-antlib:
>>
>>
>>
>> ivy-init-antlib:
>>
>>
>>
>> ivy-init:
>>
>>
>>
>> ivy-retrieve-hadoop-source:
>>
>> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
>> http://ant.apache.org/ivy/ ::
>>
>> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>>
>> [ivy:retrieve] :: resolving dependencies ::
>> org.apache.hadoop.hive#shims;working@ph2
>>
>> [ivy:retrieve]  confs: [default]
>>
>> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>>
>> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl
>> 3ms
>>
>>
>> ---------------------------------------------------------------------
>>
>>         |                  |            modules            ||
>> artifacts   |
>>
>>         |       conf       | number| search|dwnlded|evicted||
>> number|dwnlded|
>>
>>
>> ---------------------------------------------------------------------
>>
>>         |      default     |   1   |   0   |   0   |   0   ||   1   |
>> 0   |
>>
>>
>> ---------------------------------------------------------------------
>>
>> [ivy:retrieve]
>>
>> [ivy:retrieve] :: problems summary ::
>>
>> [ivy:retrieve] :::: ERRORS
>>
>> [ivy:retrieve]  Server access Error: Connection timed out url=
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>>
>> [ivy:retrieve]  Server access Error: Connection timed out url=
>> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>>
>> [ivy:retrieve]
>>
>> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>>
>> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>>
>> [ivy:retrieve]  confs: [default]
>>
>> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>>
>>
>>
>> install-hadoopcore-internal:
>>
>>
>>
>> BUILD FAILED
>>
>> /master/hive/build.xml:148: The following error occurred while executing
>> this line:
>>
>> /master/hive/build.xml:93: The following error occurred while executing
>> this line:
>>
>> /master/hive/shims/build.xml:64: The following error occurred while
>> executing this line:
>>
>> /master/hive/build-common.xml:178: Error while expanding
>> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>>
>>
>>
>> Can you please help me on this.
>>
>>
>>
>> Regards
>>
>> Vidyasagar N V
>>
>>
>>
>> *From:* Carl Steinbach [mailto:carl@cloudera.com]
>> *Sent:* Thursday, February 11, 2010 4:50 PM
>>
>> *To:* hive-user@hadoop.apache.org
>> *Subject:* Re: Hive Installation Error
>>
>>
>>
>> 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 <
>> vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
>> Sent: Thursday, February 11, 2010 2:26 PM
>> To: hive-user@hadoop.apache.org
>>
>> 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
>> <vi...@onmobile.com> 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.
>>
>>
>>
>> ------------------------------
>> 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.
>>
>
>

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
Hi Vidyasagar,

Try doing the following:

% cd ~/.ant/cache/hadoop/core/sources
% wget
http://archive.apache.org/dist/hadoop/core/hadoop-0.17.2.1/hadoop-0.17.2.1.tar.gz
% wget
http://archive.apache.org/dist/hadoop/core/hadoop-0.18.3/hadoop-0.18.3.tar.gz
% wget
http://archive.apache.org/dist/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
% wget
http://archive.apache.org/dist/hadoop/core/hadoop-0.20.1/hadoop-0.20.1.tar.gz
% cd /master/hive
% svn update
% ant -Dhadoop.version=0.20.1 clean package



On Thu, Feb 11, 2010 at 4:17 AM, Vidyasagar Venkata Nallapati <
vidyasagar.nallapati@onmobile.com> wrote:

>  Hi Carl,
>
>
>
> I am still getting an error as
>
>
>
> phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
>
> Buildfile: build.xml
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: anttasks
>
>    [delete] Deleting directory /master/hive/build/anttasks
>
>
>
> clean:
>
>      [echo] Cleaning: shims
>
>    [delete] Deleting directory /master/hive/build/shims
>
>
>
> clean:
>
>      [echo] Cleaning: common
>
>
>
> clean:
>
>      [echo] Cleaning: serde
>
>
>
> clean:
>
>      [echo] Cleaning: metastore
>
>
>
> clean:
>
>      [echo] Cleaning: ql
>
>
>
> clean:
>
>      [echo] Cleaning: cli
>
>
>
> clean:
>
>      [echo] Cleaning: contrib
>
>
>
> clean:
>
>
>
> clean:
>
>
>
> clean:
>
>      [echo] Cleaning: hwi
>
>
>
> clean:
>
>      [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs
> /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
>
>    [delete] Deleting directory /master/hive/build
>
>
>
> jar:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build
>
>     [mkdir] Created dir: /master/hive/build/shims
>
>     [mkdir] Created dir: /master/hive/build/shims/classes
>
>     [mkdir] Created dir: /master/hive/build/jexl/classes
>
>     [mkdir] Created dir: /master/hive/build/hadoopcore
>
>     [mkdir] Created dir: /master/hive/build/shims/test
>
>     [mkdir] Created dir: /master/hive/build/shims/test/src
>
>     [mkdir] Created dir: /master/hive/build/shims/test/classes
>
>
>
> compile-ant-tasks:
>
>
>
> create-dirs:
>
>     [mkdir] Created dir: /master/hive/build/anttasks
>
>     [mkdir] Created dir: /master/hive/build/anttasks/classes
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/src
>
>     [mkdir] Created dir: /master/hive/build/anttasks/test/classes
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>     [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
>
>     [javac] Note:
> /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or
> overrides a deprecated API.
>
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>
>
>
> deploy-ant-tasks:
>
>
>
> create-dirs:
>
>
>
> init:
>
>
>
> compile:
>
>      [echo] Compiling: anttasks
>
>
>
> jar:
>
>      [copy] Copying 1 file to
> /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
>
>       [jar] Building jar:
> /master/hive/build/anttasks/hive-anttasks-0.6.0.jar
>
>
>
> init:
>
>
>
> compile:
>
>
>
> ivy-init-dirs:
>
>     [mkdir] Created dir: /master/hive/build/ivy
>
>     [mkdir] Created dir: /master/hive/build/ivy/lib
>
>     [mkdir] Created dir: /master/hive/build/ivy/report
>
>     [mkdir] Created dir: /master/hive/build/ivy/maven
>
>
>
> ivy-download:
>
>       [get] Getting:
> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
>
>       [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar
>
>
>
> ivy-probe-antlib:
>
>
>
> ivy-init-antlib:
>
>
>
> ivy-init:
>
>
>
> ivy-retrieve-hadoop-source:
>
> [ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 ::
> http://ant.apache.org/ivy/ ::
>
> :: loading settings :: file = /master/hive/ivy/ivysettings.xml
>
> [ivy:retrieve] :: resolving dependencies ::
> org.apache.hadoop.hive#shims;working@ph2
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
>
> [ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
>
>
> ---------------------------------------------------------------------
>
>         |                  |            modules            ||   artifacts
> |
>
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>
>
> ---------------------------------------------------------------------
>
>         |      default     |   1   |   0   |   0   |   0   ||   1   |   0
> |
>
>
> ---------------------------------------------------------------------
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve] :::: ERRORS
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
>
> [ivy:retrieve]  Server access Error: Connection timed out url=
> https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> [ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
>
> [ivy:retrieve]  confs: [default]
>
> [ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)
>
>
>
> install-hadoopcore-internal:
>
>
>
> BUILD FAILED
>
> /master/hive/build.xml:148: The following error occurred while executing
> this line:
>
> /master/hive/build.xml:93: The following error occurred while executing
> this line:
>
> /master/hive/shims/build.xml:64: The following error occurred while
> executing this line:
>
> /master/hive/build-common.xml:178: Error while expanding
> /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz
>
>
>
> Can you please help me on this.
>
>
>
> Regards
>
> Vidyasagar N V
>
>
>
> *From:* Carl Steinbach [mailto:carl@cloudera.com]
> *Sent:* Thursday, February 11, 2010 4:50 PM
>
> *To:* hive-user@hadoop.apache.org
> *Subject:* Re: Hive Installation Error
>
>
>
> 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 <
> vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: hive-user@hadoop.apache.org
>
> 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
> <vi...@onmobile.com> 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.
>
>
>
> ------------------------------
> 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.
>

RE: Hive Installation Error

Posted by Vidyasagar Venkata Nallapati <vi...@onmobile.com>.
Hi Carl,

I am still getting an error as

phoenix@ph2:/master/hive$ ant -Dhadoop.version=0.20.1 clean package
Buildfile: build.xml

clean:

clean:
     [echo] Cleaning: anttasks
   [delete] Deleting directory /master/hive/build/anttasks

clean:
     [echo] Cleaning: shims
   [delete] Deleting directory /master/hive/build/shims

clean:
     [echo] Cleaning: common

clean:
     [echo] Cleaning: serde

clean:
     [echo] Cleaning: metastore

clean:
     [echo] Cleaning: ql

clean:
     [echo] Cleaning: cli

clean:
     [echo] Cleaning: contrib

clean:

clean:

clean:
     [echo] Cleaning: hwi

clean:
     [exec] rm -rf /master/hive/build/odbc /master/hive/build/service/objs /master/hive/build/service/fb303/objs /master/hive/build/metastore/objs
   [delete] Deleting directory /master/hive/build

jar:

create-dirs:
    [mkdir] Created dir: /master/hive/build
    [mkdir] Created dir: /master/hive/build/shims
    [mkdir] Created dir: /master/hive/build/shims/classes
    [mkdir] Created dir: /master/hive/build/jexl/classes
    [mkdir] Created dir: /master/hive/build/hadoopcore
    [mkdir] Created dir: /master/hive/build/shims/test
    [mkdir] Created dir: /master/hive/build/shims/test/src
    [mkdir] Created dir: /master/hive/build/shims/test/classes

compile-ant-tasks:

create-dirs:
    [mkdir] Created dir: /master/hive/build/anttasks
    [mkdir] Created dir: /master/hive/build/anttasks/classes
    [mkdir] Created dir: /master/hive/build/anttasks/test
    [mkdir] Created dir: /master/hive/build/anttasks/test/src
    [mkdir] Created dir: /master/hive/build/anttasks/test/classes

init:

compile:
     [echo] Compiling: anttasks
    [javac] Compiling 2 source files to /master/hive/build/anttasks/classes
    [javac] Note: /master/hive/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

deploy-ant-tasks:

create-dirs:

init:

compile:
     [echo] Compiling: anttasks

jar:
     [copy] Copying 1 file to /master/hive/build/anttasks/classes/org/apache/hadoop/hive/ant
      [jar] Building jar: /master/hive/build/anttasks/hive-anttasks-0.6.0.jar

init:

compile:

ivy-init-dirs:
    [mkdir] Created dir: /master/hive/build/ivy
    [mkdir] Created dir: /master/hive/build/ivy/lib
    [mkdir] Created dir: /master/hive/build/ivy/report
    [mkdir] Created dir: /master/hive/build/ivy/maven

ivy-download:
      [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.0.0-rc2/ivy-2.0.0-rc2.jar
      [get] To: /master/hive/build/ivy/lib/ivy-2.0.0-rc2.jar

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:

ivy-retrieve-hadoop-source:
[ivy:retrieve] :: Ivy 2.0.0-rc2 - 20081028224207 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = /master/hive/ivy/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.hadoop.hive#shims;working@ph2
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found hadoop#core;0.20.0 in hadoop-source
[ivy:retrieve] :: resolution report :: resolve 382725ms :: artifacts dl 3ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   0   |   0   |   0   ||   1   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/core-0.20.0.pom
[ivy:retrieve]  Server access Error: Connection timed out url=https://repository.apache.org/content/repositories/snapshots/hadoop/core/0.20.0/hadoop-0.20.0.tar.gz
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[ivy:retrieve] :: retrieving :: org.apache.hadoop.hive#shims
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  1 artifacts copied, 0 already retrieved (41810kB/109ms)

install-hadoopcore-internal:

BUILD FAILED
/master/hive/build.xml:148: The following error occurred while executing this line:
/master/hive/build.xml:93: The following error occurred while executing this line:
/master/hive/shims/build.xml:64: The following error occurred while executing this line:
/master/hive/build-common.xml:178: Error while expanding /master/hive/build/hadoopcore/hadoop-0.20.1.tar.gz

Can you please help me on this.

Regards
Vidyasagar N V

From: Carl Steinbach [mailto:carl@cloudera.com]
Sent: Thursday, February 11, 2010 4:50 PM
To: hive-user@hadoop.apache.org
Subject: Re: Hive Installation Error

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 <vi...@onmobile.com>> 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:zshao9@gmail.com<ma...@gmail.com>]
Sent: Thursday, February 11, 2010 2:26 PM
To: hive-user@hadoop.apache.org<ma...@hadoop.apache.org>
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
<vi...@onmobile.com>> 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.


________________________________
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.

Re: Hive Installation Error

Posted by Carl Steinbach <ca...@cloudera.com>.
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 <
vidyasagar.nallapati@onmobile.com> 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:zshao9@gmail.com]
> Sent: Thursday, February 11, 2010 2:26 PM
> To: hive-user@hadoop.apache.org
> 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
> <vi...@onmobile.com> 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.
>

RE: Hive Installation Error

Posted by Vidyasagar Venkata Nallapati <vi...@onmobile.com>.
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:zshao9@gmail.com]
Sent: Thursday, February 11, 2010 2:26 PM
To: hive-user@hadoop.apache.org
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
<vi...@onmobile.com> 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.

Re: Hive Installation Error

Posted by Zheng Shao <zs...@gmail.com>.
What commands did you run? With which release?

Zheng
On Wed, Feb 10, 2010 at 11:20 PM, Vidyasagar Venkata Nallapati
<vi...@onmobile.com> 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