Alex.Wang 2011-05-11, 08:29
I do it like this:
1.down load the hive src
2.compile hive in eclipse from my windows,which can connect the net.it
will down load all necessories to src/build dir
3.in 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">
<target name="ivy-retrieve" >
5.compile hive: ant -Doffline=true package
2011/5/11 Alex.Wang <[EMAIL PROTECTED]>:
> 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:
> [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
> [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
> BUILD FAILED:
> /path/src/shims/build.xml: 62: The following error occurred while
> executing this line:
> /path/src/build-common.xml: 125: java.net.UnknownHostException: repot.maven.org
> 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.
Alex.Wang 2011-05-11, 09:11