[ 
https://issues.apache.org/jira/browse/FLINK-16883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabian Paul updated FLINK-16883:
--------------------------------
    Description: 
If `flink.console.sh` is used to start a Flink cluster the env java opts 
precede the log settings.  
([link|https://github.com/apache/flink/blob/master/flink-dist/src/main/flink-bin/bin/flink-console.sh#L73])

This way the log settings `log4.configurationFile` will always overwrite 
previous keys. Since the `log4j.configurationFile` is set to 
`log4j.properties`, it is not possible to leverage other formats than 
properties for the configuration.

 

My proposal would be to switch the order of the configurations that the log 
settings precede the env java opts. Users could then overwrite the default file 
with their configurations.

 

  was:
If `flink.console.sh` is used to start a Flink cluster the env java opts 
precede the log settings. 
([[link||https://github.com/apache/flink/blob/a982488fd8a6b8155f4fcb45c893661e11bade61/flink-dist/src/main/flink-bin/bin/flink-console.sh#L73]
 
[https://github.com/apache/flink/blob/master/flink-dist/src/main/flink-bin/bin/flink-console.sh#L73]
 
[])|https://github.com/apache/flink/blob/a982488fd8a6b8155f4fcb45c893661e11bade61/flink-dist/src/main/flink-bin/bin/flink-console.sh#L73]

This way the log settings `log4.configurationFile` will always overwrite 
previous keys. Since the `log4j.configurationFile` is set to 
`log4j.properties`, it is not possible to leverage other formats than 
properties for the configuration.

 

My proposal would be to switch the order of the configurations that the log 
settings precede the env java opts. Users could then overwrite the default file 
with their configurations.

 


> No support for log4j2 configuration formats besides properties
> --------------------------------------------------------------
>
>                 Key: FLINK-16883
>                 URL: https://issues.apache.org/jira/browse/FLINK-16883
>             Project: Flink
>          Issue Type: Improvement
>          Components: Command Line Client
>    Affects Versions: 1.11.0
>            Reporter: Fabian Paul
>            Priority: Major
>
> If `flink.console.sh` is used to start a Flink cluster the env java opts 
> precede the log settings.  
> ([link|https://github.com/apache/flink/blob/master/flink-dist/src/main/flink-bin/bin/flink-console.sh#L73])
> This way the log settings `log4.configurationFile` will always overwrite 
> previous keys. Since the `log4j.configurationFile` is set to 
> `log4j.properties`, it is not possible to leverage other formats than 
> properties for the configuration.
>  
> My proposal would be to switch the order of the configurations that the log 
> settings precede the env java opts. Users could then overwrite the default 
> file with their configurations.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to