|
|
-
Re: Question about how to compile Hive project off-line?Alex.Wang 2011-05-11, 09:11
Thank you very much!
I am going to use your approach at once. Hope I can get some luck. :-D Best regards. 2011/5/11 Jov <[EMAIL PROTECTED]>: > 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"> > <ivy:retrieve settingsRef="${ant.project.name}.ivy.settings" > pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}" > log="${ivyresolvelog}"/> > </target> > --> > <target name="ivy-retrieve" > > </target> > > 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: >> ivy-download: >> [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 >> http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar >> 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. >> > |