Search code examples
amazon-web-serviceshiveambari

hive log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender


Hello how to fixe this issues? When I try to launch hive in my commande line(I'm using amazone aws instance and ambari is well started only 3 CRIT in YARN).


Solution

  • Change the code from

    log4j.appender.FILE=org.apache.log4j.FileAppender 
    

    To

    log4j.appender.FILE=org.apache.log4j.RollingFileAppender
    

    in log4j.properties

    DailyRollingFileAppender doesn't support MaxFileSize, RollingFileAppender does.