Skip to content

Commit ca2a3d1

Browse files
authored
Support YARN_CONF_DIR along with HADOOP_CONF_DIR (#101)
When both defined then YARN_CONF_DIR should have priority as it is more specific.
1 parent ef38d48 commit ca2a3d1

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
@@ -7,7 +7,7 @@
77

88
log = get_logger(__name__)
99

10-
CONF_DIR = os.getenv('HADOOP_CONF_DIR', '/etc/hadoop/conf')
10+
CONF_DIR = os.getenv('YARN_CONF_DIR', os.getenv('HADOOP_CONF_DIR', '/etc/hadoop/conf'))
1111

1212

1313
def _get_rm_ids(hadoop_conf_path):

0 commit comments

Comments
 (0)