diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java index 032eb6e7a1..e84809ae72 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java @@ -3519,7 +3519,8 @@ private SliderClusterProtocol bondToCluster(String clustername) throws if (clustername == null) { throw unknownClusterException("(undefined)"); } - ApplicationReport instance = findInstance(clustername); + ApplicationReport instance = findInstance(clustername, + SliderUtils.getAllLiveAppStates()); if (null == instance) { throw unknownClusterException(clustername); }