Skip to content

Commit d3a7b65

Browse files
hansohnlresende
authored andcommitted
Check for HADOOP_CONF_DIR env var
When setting CONF_DIR in yarn_api_client/hadoop_conf.py it would be nice to check for conf dir overrides defined via the HADOOP_CONF_DIR env var. This comes in handy when working with hadoop clients defined in non standard paths. Closes #25
1 parent cd2b63e commit d3a7b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn_api_client/hadoop_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
except ImportError:
77
from http.client import HTTPConnection, OK
88

9-
CONF_DIR = '/etc/hadoop/conf'
9+
CONF_DIR = os.getenv('HADOOP_CONF_DIR', '/etc/hadoop/conf')
1010

1111

1212
def _get_rm_ids(hadoop_conf_path):

0 commit comments

Comments
 (0)