[ https://issues.apache.org/jira/browse/FLINK-37125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sehaj pal singh sandhu updated FLINK-37125: ------------------------------------------- Component/s: Deployment / YARN > env.log.max Log4j java.lang.NumberFormatException > ------------------------------------------------- > > Key: FLINK-37125 > URL: https://issues.apache.org/jira/browse/FLINK-37125 > Project: Flink > Issue Type: Bug > Components: Deployment / YARN > Affects Versions: 1.19.1 > Reporter: sehaj pal singh sandhu > Priority: Major > > After installing Flink in an Ambari cluster we see this error log > {code:java} > tail -f /var/log/flink/flink-flink-historyserver-0.out > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] > 2024-11-14 08:27:53,889 main ERROR Could not create plugin of type class > org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy for > element DefaultRolloverStrategy: java.lang.NumberFormatException: For input > string: "'10'" java.lang.NumberFormatException: For input string: "'10'" > at > java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > at java.base/java.lang.Integer.parseInt(Integer.java:638) > at java.base/java.lang.Integer.parseInt(Integer.java:770) > at > org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy$Builder.build(DefaultRolloverStrategy.java:137) > at > org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy$Builder.build(DefaultRolloverStrategy.java:90) > at > org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247) > {code} > This seems to be an issue with the > {{migrateLegacyConfigurationToStandardYaml}} method, where the configuration > parameters in the converted {{config.yaml}} are by default treated as > strings. > This causes problems when trying to change the default configuration, as seen > in the error related to the {{DefaultRolloverStrategy}} plugin. An older > ticket addresses this issue by setting default values for the configuration > (log.max), but the problem persists when attempting to modify these default > configurations. > For reference, here is the related JIRA ticket and commit: > https://issues.apache.org/jira/browse/FLINK-19865 > [https://github.com/apache/flink/commit/133593a396ea5f0c27a240cf6413b5dba3253f72#diff-64c69f9b178bb609bd11e9a5bebb807b9d3b361fc5ebfdaba6dbfdb9619172a3L52] > > -- This message was sent by Atlassian Jira (v8.20.10#820010)