Skip to content

Commit

Permalink
RANGER-4675: Using the ozone service id specified in the config inste…
Browse files Browse the repository at this point in the history
…ad of hardcoded value for resource lookup (#297)
  • Loading branch information
fateh288 authored Jan 17, 2024
1 parent a664de5 commit 7aa17a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public OzoneClient(String serviceName, Map<String,String> connectionProperties)
}
}
Subject.doAs(getLoginSubject(), (PrivilegedExceptionAction<Void>) () -> {
ozoneClient = OzoneClientFactory.getRpcClient("ozone1", conf);
String[] serviceIds = conf.getTrimmedStrings("ozone.om.service.ids", "ozone1");
ozoneClient = OzoneClientFactory.getRpcClient(serviceIds[0], conf);
return null;
});
}
Expand Down

0 comments on commit 7aa17a1

Please sign in to comment.