Ralph, I usually do mvn install -Dresolvers=internal in every directory. This publishes artifacts in ~/.m2 directory, and looks up ~/.m2 while resolving dependencies.
- Milind On 12/7/11 11:42 AM, "Ralph Castain" <[email protected]> wrote: >Thanks! Getting closer now - hitting this block: > >[WARNING] The POM for >org.apache.hadoop:hadoop-assemblies:jar:0.23.1-SNAPSHOT is missing, no >dependency information available > >I ran maven in the hadoop-assemblies directory and generated the >specified file in the "target" subdirectory there: > >$ ls ../hadoop-assemblies/target/ >./ classes/ > javadoc-bundle-options/ >../ hadoop-assemblies-0.23.1-SNAPSHOT-sources.jar > maven-archiver/ >antrun/ hadoop-assemblies-0.23.1-SNAPSHOT.jar >test-dir/ > >So I'm guessing there is some envar required so maven running in >hadoop-common can locate it - yes? > >Per the install directions, I have the following envars set: > >HADOOP_HDFS_HOME=<my-root>/hadoop/hdfs >HADOOP_COMMON_HOME=<my-root>/hadoop/common >HADOOP_MAPRED_HOME=<my-root>/hadoop/mapred >YARN_HOME=<my-root>/hadoop/branch-0.23 > >The head of the source tree is in YARN_HOME. > > >On Dec 7, 2011, at 11:00 AM, <[email protected]> ><[email protected]> wrote: > >> Ralph, >> >> Looks like you are using a Mac to build. The native components of the >> build are not buildable on Mac. Disable native build by specifying >> -P-native. >> >> - Milind >> >> --- >> Milind Bhandarkar >> Greenplum Labs, EMC >> (Disclaimer: Opinions expressed in this email are those of the author, >>and >> do not necessarily represent the views of any organization, past or >> present, the author might be affiliated with.) >> >> >> >> On 12/7/11 9:24 AM, "Ralph Castain" <[email protected]> wrote: >> >>> Hi folks >>> >>> I'm trying to build the 0.23 svn trunk today and am hitting the >>>following >>> error: >>> >>> INFO] --- make-maven-plugin:1.0-beta-1:make-install (compile) @ >>> hadoop-common --- >>> [INFO] /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H >>> -I. -I/Library/Java/Home/include >>> >>>-I/Users/rhc/hadoop/branch-0.23/hadoop-common-project/hadoop-common/targ >>>et >>> /native/src >>> >>>-I/Users/rhc/hadoop/branch-0.23/hadoop-common-project/hadoop-common/targ >>>et >>> /native/javah -I/usr/local/include -g -Wall -fPIC -O2 -m64 -gstabs+ -MT >>> ZlibCompressor.lo -MD -MP -MF .deps/ZlibCompressor.Tpo -c -o >>> ZlibCompressor.lo `test -f >>> 'src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c' || echo >>> './'`src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c >>> [INFO] libtool: compile: gcc -DHAVE_CONFIG_H -I. >>> -I/Library/Java/Home/include >>> >>>-I/Users/rhc/hadoop/branch-0.23/hadoop-common-project/hadoop-common/targ >>>et >>> /native/src >>> >>>-I/Users/rhc/hadoop/branch-0.23/hadoop-common-project/hadoop-common/targ >>>et >>> /native/javah -I/usr/local/include -g -Wall -fPIC -O2 -m64 -gstabs+ -MT >>> ZlibCompressor.lo -MD -MP -MF .deps/ZlibCompressor.Tpo -c >>> src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c -fno-common >>> -DPIC -o .libs/ZlibCompressor.o >>> [INFO] src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c: In >>> function >>>'Java_org_apache_hadoop_io_compress_zlib_ZlibCompressor_initIDs': >>> [INFO] src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c:71: >>>error: >>> 'libnotfound' undeclared (first use in this function) >>> [INFO] src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c:71: >>>error: >>> (Each undeclared identifier is reported only once >>> [INFO] src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c:71: >>>error: >>> for each function it appears in.) >>> [INFO] make: *** [ZlibCompressor.lo] Error 1 >>> [INFO] >>> >>>------------------------------------------------------------------------ >>> [INFO] Reactor Summary: >>> [INFO] >>> [INFO] Apache Hadoop Annotations ......................... SUCCESS >>> [9.191s] >>> [INFO] Apache Hadoop Auth ................................ SUCCESS >>> [6.852s] >>> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS >>> [4.651s] >>> [INFO] Apache Hadoop Common .............................. FAILURE >>> [39.980s] >>> [INFO] Apache Hadoop Common Project ...................... SKIPPED >>> [INFO] >>> >>>------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> >>>------------------------------------------------------------------------ >>> >>> >>> I've been following the instructions in the blogs and in INSTALL which >>> worked fine until it hit this point. Any suggestions? >>> >>> Thanks >>> Ralph >>> >>> >> > >
