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

Mariusz Górski updated ATLAS-3557:
----------------------------------
    Description: 
*Background*:

Currently Atlas *entrypoint.sh* uses Python scripts for setup. Executing java 
process is done through *runProcess* function in *atlas_config.py*, which 
explicitly redirects *stdout* and *stderr* of those processes to files. We 
would like this to be configurable, so we are able to use bare log4j config to 
define our logging strategy. This way logging stream might be easily captured 
while running Atlas on Docker/Kubernetes, where containers stdout is captured.

 

*Proposal*:

*REDIRECT_STDOUT* env variable which defaults to *True* (for backwards 
compatibility):
 * When *True* - nothing changes
 * When *False* - runProcess is opening subprocess without stdout and stderr 
kwargs 

  was:
*Background*:

Currently Atlas *entrypoint.sh* uses Python scripts for setup. Executing java 
process is done through *runProcess* function in *atlas_config.py*, which 
explicitly redirects *stdout* and *stderr* of those processes to files. We 
would like this to be configurable, so we are able to use bare log4j config to 
define our logging strategy. This way logging stream might be easily captured 
while running Atlas on Docker/Kubernetes, where containers stdout is captured.

 

*Proposal*:

Adding *REDIRECT_STDOUT* env variable which defaults to *True* (for backwards 
compatibility):
 * When *True* - nothing changes
 * When *False* - runProcess is opening subprocess without stdout and stderr 
kwargs 


> Configurable STDOUT/STDERR Redirect in Python entrypoint scripts
> ----------------------------------------------------------------
>
>                 Key: ATLAS-3557
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3557
>             Project: Atlas
>          Issue Type: Improvement
>            Reporter: Mariusz Górski
>            Priority: Minor
>
> *Background*:
> Currently Atlas *entrypoint.sh* uses Python scripts for setup. Executing java 
> process is done through *runProcess* function in *atlas_config.py*, which 
> explicitly redirects *stdout* and *stderr* of those processes to files. We 
> would like this to be configurable, so we are able to use bare log4j config 
> to define our logging strategy. This way logging stream might be easily 
> captured while running Atlas on Docker/Kubernetes, where containers stdout is 
> captured.
>  
> *Proposal*:
> *REDIRECT_STDOUT* env variable which defaults to *True* (for backwards 
> compatibility):
>  * When *True* - nothing changes
>  * When *False* - runProcess is opening subprocess without stdout and stderr 
> kwargs 



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

Reply via email to