본문 바로가기
빅데이터/oozie

[oozie] java.lang.NoSuchMethodError: org.apache.log4j.config.PropertySetter.activate 오류 해결 방법

by hs_seo 2023. 11. 13.

oozie 5.2.1에서 서버를 실행 할 때 다음의 오류가 발생하였습니다.

 

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.log4j.config.PropertySetter.activate()V
    at org.apache.log4j.PropertyConfigurator.parseAppenderFilters(PropertyConfigurator.java:923)
    at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:845)
    at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395)
    at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:955)
    at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
    at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:58)
    at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator.java:947)
    at org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:473)
    at org.apache.oozie.service.XLogService.init(XLogService.java:177)
    at org.apache.oozie.service.Services.setServiceInternal(Services.java:387)
    at org.apache.oozie.service.Services.<init>(Services.java:111)
    at org.apache.oozie.tools.OozieDBCLI.getJdbcConf(OozieDBCLI.java:173)
    at org.apache.oozie.tools.OozieDBCLI.createConnection(OozieDBCLI.java:915)
    at org.apache.oozie.tools.OozieDBCLI.validateConnection(OozieDBCLI.java:923)
    at org.apache.oozie.tools.OozieDBCLI.createDB(OozieDBCLI.java:192)
    at org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:135)
    at org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:83)

 

log4j 라이브러리가 중복되어 발생한 오류로, oozie/lib 아래 다음 파일을 삭제 하였습니다.

 

log4j-1.2-api-2.6.2.jar
반응형