Ok, I have committed some changes to the pom files. The project compiles on my OSX machine, I am running the unit test for cdh4-mr1 now on a Linux box. I will report once the tests are complete.
Aaron On Sun, Jul 21, 2013 at 8:59 PM, Aaron McCurry <[email protected]> wrote: > I'm not sure how I missed it but mrunit is causing some conflicting hadoop > versioning setup in the mrunit pom file. Working on fixing it now. > > Aaron > > > On Sun, Jul 21, 2013 at 4:09 PM, <[email protected]> wrote: > >> Hi Aaron, >> >> I get the following error when compiling against CDH4. >> >> [ERROR] Failed to execute goal on project blur-mapred: Could not resolve >> dependencies for project >> org.apache.blur:blur-mapred:jar:0.2.0-incubating-SNAPSHOT: The following >> artifacts could not be resolved: >> org.apache.hadoop:hadoop-common:jar:2.0.0-mr1-cdh4.3.0, >> org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.0.0-mr1-cdh4.3.0, >> org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.0.0-mr1-cdh4.3.0: >> Failure to find org.apache.hadoop:hadoop-common:jar:2.0.0-mr1-cdh4.3.0 in >> file:///tmp/incubator-blur/blur-mapred/../lib was cached in the local >> repository, resolution will not be reattempted until the update interval >> of libdir has elapsed or updates are forced -> [Help 1] >> >> Here is the full log: >> >> http://pastebin.com/tbYLgFFq >> >> Thanks, >> >> slevytam >> >> >> >> > I have made a few pom file updates. The -P "distribution" was removed >> > because I needed to use profiles to be able to change out the >> > dependencies. >> > So with this commit: >> > >> > >> https://git-wip-us.apache.org/repos/asf?p=incubator-blur.git;a=commit;h=84eb05a1caf3d8aac03f29b92db4dd4fe7cbce38 >> > >> > You can now compile Blur against different versions of Hadoop. By >> default >> > it runs the "hadoop-1x" profile with the 1.1.2 version of Hadoop. >> > >> > So running "mvn install" runs "mvn install -Phadoop-1x >> > -Dhadoop.version=1.1.2" >> > >> > If you want to compile against Hadoop 1.2.0 run: >> > >> > "mvn install -Phadoop-1x -Dhadoop.version=1.2.0" >> > >> > If you want to compile against cdh4 with mr1 run: >> > >> > "mvn install -Pcdh4-mr1 -Dhadoop.version=2.0.0-mr1-cdh4.3.0" >> > >> > Hope this helps those who want to run Blur on different Hadoop distros. >> > >> > Aaron >> > >> >> >
