hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jov <>
Subject Re: Question about how to compile Hive project off-line?
Date Wed, 11 May 2011 09:06:21 GMT
I do it like this:

1.down load the hive src
2.compile hive in eclipse from my windows,which can connect the
will down load all necessories to src/build dir linux,mkdir src/build;copy the src/build/hadoopcore,src/ivy from
windows to linux
4.edit the src/build-common.xml,make the target "ivy-retrieve" do nothing:

  <target name="ivy-retrieve" depends="ivy-resolve"
    description="Retrieve Ivy-managed artifacts">
    <ivy:retrieve settingsRef="${}.ivy.settings"
  <target name="ivy-retrieve" >

5.compile hive: ant -Doffline=true package

2011/5/11 Alex.Wang <>:
> Hello everyone.
> I am a student who begins to do some research on Hive project.
> I think the first step is to have a successful build of Hive.
> I have downloaded the Hive source code, uploaded to the Linux machine,
> unzipped and entered the source directory.
> Then I run the "ant" command and got a error message related to the ivy package.
> The complete message is:
> ivy-download:
> [get] Getting:
> [get] To: /path/hive-0.7.0/src/build/ivy/lib/ivy-2.1.0.jar
> [get] Error getting
> to /path/src/build/ivy/lib/ivy-2.1.0.jar
> /path/src/shims/build.xml: 62: The following error occurred while
> executing this line:
> /path/src/build-common.xml: 125:
> In fact, the Linux machine is a offline machine. That is, it only
> accepts an incoming data and doesn't have the internet access to
> download the required ivy package.
> However, I can downloaded the ivy package to my PC and upload it to
> this Linux machine. So is anyone here willing to tell how to modify
> necessary files to enable the offline-build of Hive?
> Any help is greatly appreciated. Thank you.
> Best regards.

View raw message