diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/client/ServiceClient.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/client/ServiceClient.java index 11cd30d633..af43f8ace3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/client/ServiceClient.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/client/ServiceClient.java @@ -943,7 +943,7 @@ protected ClientAMProtocol createAMProxy(String host, int port) UserGroupInformation.getCurrentUser(), rpc, address); } - private synchronized ApplicationId getAppId(String serviceName) + public synchronized ApplicationId getAppId(String serviceName) throws IOException, YarnException { if (cachedAppIds.containsKey(serviceName)) { return cachedAppIds.get(serviceName);