Skip to content

Commit 0c04fb1

Browse files
committed
Set webhdfs_host to a hostname instead of an ip address
PNDA-4235
1 parent 4b3ea3f commit 0c04fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/resources/deployer_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def fill_hadoop_env_cdh(env):
213213
if not nameservice and role.type == "NAMENODE":
214214
env['name_node'] = 'hdfs://%s:8020' % api.get_host(role.hostRef.hostId).hostname
215215
if role.type == "HTTPFS":
216-
env['webhdfs_host'] = '%s' % api.get_host(role.hostRef.hostId).ipAddress
216+
env['webhdfs_host'] = '%s' % api.get_host(role.hostRef.hostId).hostname
217217
env['webhdfs_port'] = '14000'
218218
elif service.type == "YARN":
219219
for role in service.get_all_roles():

0 commit comments

Comments
 (0)