Hi!

Oozie's master is compiling with Hive 1.2.2 by default.
It looks like we haven't been  keeping up with our dependencies and when
Hive changed to Log4j2, it breaks our stuff.
I've managed to fix the distro build by changing the order of dependencies
in the core/pom.xml. I've put log4j-related entries to the top. (See
attached file)
gp



On Sat, Feb 1, 2020 at 7:04 PM Kaden Cho <kadensungbin...@gmail.com> wrote:

> I tried to build Oozie on:
>
> - Debian GNU/Linux 8 (jessie)
> - Java 1.8.0_221
> - Maven 3.6.3
>
> with 'bin/mkdistro.sh -P uber -DskipTests -Dhadoop.version=2.7.4
> -Dhive.version=2.1.1 -e'
>
> but I failed with the error like following:
>
> [*ERROR*] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile
> *(default-testCompile)* on project oozie-core: *Compilation failure*:
> Compilation failure:
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[213,47]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getLevel()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[214,32]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getMessage()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[215,82]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getLoggerName()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[221,47]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getLevel()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[222,32]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getMessage()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[231,32]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getMessage()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java:[240,32]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getMessage()
>
> [*ERROR*]   location: variable logEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java:[848,48]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getLevel()
>
> [*ERROR*]   location: variable firstLogEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java:[849,33]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getMessage()
>
> [*ERROR*]   location: variable firstLogEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*]
>
> /tmp/oozie-5.2.0/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java:[850,79]
> cannot find symbol
>
> [*ERROR*]   symbol:   method getLoggerName()
>
> [*ERROR*]   location: variable firstLogEntry of type
> org.apache.log4j.spi.LoggingEvent
>
> [*ERROR*] -> *[Help 1]*
>
> [*ERROR*]
>
> [*ERROR*] To see the full stack trace of the errors, re-run Maven with the
> *-e* switch.
>
> [*ERROR*] Re-run Maven using the *-X* switch to enable full debug logging.
>
> [*ERROR*]
>
> [*ERROR*] For more information about the errors and possible solutions,
> please read the following articles:
>
> [*ERROR*] *[Help 1]*
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> [*ERROR*]
>
> [*ERROR*] After correcting the problems, you can resume the build with the
> command
>
> [*ERROR*]   *mvn <args> -rf :oozie-core*
>
>
> ERROR, Oozie distro creation failed
>
>
> Any idea?
>


-- 
*Peter Cseh* | Software Engineer, Cloudera Search
cloudera.com <https://www.cloudera.com>
[image: Cloudera] <https://www.cloudera.com/>
[image: Cloudera on Twitter] <https://twitter.com/cloudera> [image:
Cloudera on Facebook] <https://www.facebook.com/cloudera> [image: Cloudera
on LinkedIn] <https://www.linkedin.com/company/cloudera>
<https://www.cloudera.com/>
------------------------------

Reply via email to