You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by sm...@apache.org on 2014/10/12 02:58:15 UTC
[27/50] git commit: SLIDER-149 test to work even without YARN-2571
setup
SLIDER-149 test to work even without YARN-2571 setup
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/7887fd3c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/7887fd3c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/7887fd3c
Branch: refs/heads/feature/SLIDER-481_allow_dedicated_handling_of_exports
Commit: 7887fd3c01b67414c764d163e03953ad3dfcfc94
Parents: 3a759d1
Author: Steve Loughran <st...@apache.org>
Authored: Wed Oct 8 14:41:05 2014 -0700
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Oct 8 14:41:05 2014 -0700
----------------------------------------------------------------------
.../agent/standalone/TestStandaloneYarnRegistryAM.groovy | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/7887fd3c/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneYarnRegistryAM.groovy
----------------------------------------------------------------------
diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneYarnRegistryAM.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneYarnRegistryAM.groovy
index 83774d2..84dcc50 100644
--- a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneYarnRegistryAM.groovy
+++ b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneYarnRegistryAM.groovy
@@ -20,6 +20,7 @@ package org.apache.slider.agent.standalone
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
+import org.apache.hadoop.fs.PathNotFoundException
import org.apache.hadoop.yarn.api.records.ApplicationReport
import org.apache.hadoop.yarn.api.records.YarnApplicationState
import org.apache.hadoop.yarn.conf.YarnConfiguration
@@ -74,7 +75,11 @@ class TestStandaloneYarnRegistryAM extends AgentMiniClusterTestBase {
// get local binding
def registryOperations = microZKCluster.registryOperations
- registryOperations.stat(RegistryConstants.PATH_SYSTEM_SERVICES)
+ try {
+ registryOperations.stat(RegistryConstants.PATH_SYSTEM_SERVICES)
+ } catch (PathNotFoundException e) {
+ log.warn(" RM is not apparently running registry services: {}", e, e)
+ }
ServiceLauncher<SliderClient> launcher
launcher = createStandaloneAM(clustername, true, false)