If you're using the CDH version of Oozie, you should use the Hadoop version
that it normally builds against.  i.e.

mvn clean package assembly:single

If you want to use an arbitrary Hadoop version, you should use Apache's
Oozie release, and then you can override the hadoop version like you did;
however, for Hadoop 2.x, you should also add -Phadoop-2.  i.e.

mvn clean package assembly:single -Dhadoop.version=2.5.0 -Phadoop-2


- Robert


On Sat, Apr 18, 2015 at 1:06 PM, Morbious <[email protected]>
wrote:

> Hi,
>
> I use:
>
> mvn clean package assembly:single -Dhadoop.version=2.5.0
>
> (http://archive.cloudera.com/cdh5/cdh/5/oozie/ENG_Building.html)
>
> Each time I get error about doc.war.
>
> Best regards,
>
> Morbious
>
> 2015-04-17 18:50 GMT+02:00 Robert Kanter <[email protected]>:
>
> > Hi,
> >
> > What's the command you're using to compile?
> >
> >
> > - Robert
> >
> > On Fri, Apr 17, 2015 at 3:47 AM, Morbious <[email protected]
> >
> > wrote:
> >
> > > Hi,
> > >
> > > I've tried compile oozie with patch recently.
> > > Each time I did this I got an error :
> > >
> > > [ERROR] Failed to execute goal on project oozie-webapp: Could not
> resolve
> > > dependencies for project
> > org.apache.oozie:oozie-webapp:war:4.0.0-cdh5.3.2:
> > > Could not find artifact org.apache.oozie:oozie-docs:war:4.0.0-cdh5.3.2
> in
> > > cdh.repo (
> https://repository.cloudera.com/content/groups/cloudera-repos)
> > > ->
> > > [Help 1]
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute
> > > goal on project oozie-webapp: Could not resolve dependencies for
> project
> > > org.apache.oozie:oozie-webapp:war:4.0.0-cdh5.3.2: Could not find
> artifact
> > > org.apache.oozie:oozie-docs:war:4.0.0-cdh5.3.2 in cdh.repo (
> > > https://repository.cloudera.com/content/groups/cloudera-repos)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> > >     at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> > >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> > >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> > >     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> > >     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >     at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > >     at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > >     at java.lang.reflect.Method.invoke(Method.java:497)
> > >     at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> > >     at
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> > >     at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> > >     at
> > >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> > >
> > > It seems that oozie-doc*.war doesn't exist.
> > > I need to compile this due patch which allows me to use UTF8 properly.
> > > Can anyone point me what I'm doing wrong ?
> > >
> > > Best regards,
> > >
> > > Morbious
> > >
> >
>

Reply via email to