elek opened a new pull request #1849:
URL: https://github.com/apache/ozone/pull/1849
## What changes were proposed in this pull request?
I executed a simple ozone command ("ozone admin pipeline list") on my latest
deploy and got a warning:
```
ozone admin pipeline list
WARNING: OZONE_CONF_DIR not defined and cannot be found, setting in
OZONE_HOME: /opt/ozone/etc/hadoop.
```
Same with bash debug log (set -x):
```
++ local conf_dir=etc/hadoop
++ [[ -n '' ]]
++ [[ -n /opt/ozone ]]
++ ozone_verify_confdir /opt/ozone/etc/hadoop
++ [[ -f /log4j.properties ]]
++ [[ -n /opt/ozone/libexec ]]
++ ozone_verify_confdir /opt/ozone/libexec/../etc/hadoop
++ [[ -f /log4j.properties ]]
++ OZONE_CONF_DIR=/opt/ozone/etc/hadoop
++ ozone_error 'WARNING: OZONE_CONF_DIR not defined and cannot be found,
setting in OZONE_HOME: /opt/ozone/etc/hadoop.'
++ echo 'WARNING: OZONE_CONF_DIR not defined and cannot be found, setting in
OZONE_HOME: /opt/ozone/etc/hadoop.'
WARNING: OZONE_CONF_DIR not defined and cannot be found, setting in
OZONE_HOME: /opt/ozone/etc/hadoop.
```
This error supposed to be hidden as conf dir is under the default location
(/opt/ozone/etc/hadoop).
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4757
## How was this patch tested?
Executed "ozone version" with and without the patch in your host os (without
docker) whete HADOOP/OZONE_CONF_DIR is not set.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]