|
|
-
Question about how to compile Hive project off-line?Alex.Wang 2011-05-11, 08:29
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. |