To build hdfs without Internet connectivity:
1) First do a build with connectivity or copy ~/.ivy2 from a machine where such build did succeed.
2) Set up a hand-full of files in a local repo to avoid download from Maven repo:
and have three files available:
3) Before the build run these commands to copy the jars in place for ant to resolve (otherwise you have a bootstrap problem):
3) Do a build of common (using similar tricks to this if needed) on common. Exectute the mvn-install target to publish your own version to the local Maven repo (~/.m2/repository).
4) Set these properties in your build.properties (version can be passed in from Jenkins as a parameter instead when this patch is applied. Build.properties can sit in user's home directory or in hdfs directory.
- Ivy dependency resolution instruction:
#you can increment this number as you see fit and/or pass the $
- Note that hadoop-core from 0.20* branches is renamed to hadoop-common
- Specify to not download ivy. When used, must provide ivy jar ourselves.
- Instead of reaching out to Internet, pull ivy jar from local
# User by hadoop-common/hdfs and hadoop-common/mapreduce