/** * Get slider dependency parent dir in HDFS * * @return the parent dir path of slider.tar.gz in HDFS */ public Path getDependencyPath() { String parentDir = (SliderUtils.isHdp()) ? SliderKeys.SLIDER_DEPENDENCY_HDP_PARENT_DIR + SliderKeys.SLIDER_DEPENDENCY_DIR : SliderKeys.SLIDER_DEPENDENCY_DIR; Path dependencyPath = new Path(String.format(parentDir, SliderUtils.getSliderVersion())); return dependencyPath; }
/** * Get slider dependency parent dir in HDFS * * @return the parent dir path of slider.tar.gz in HDFS */ public Path getDependencyPath() { String parentDir = (SliderUtils.isHdp()) ? SliderKeys.SLIDER_DEPENDENCY_HDP_PARENT_DIR + SliderKeys.SLIDER_DEPENDENCY_DIR : SliderKeys.SLIDER_DEPENDENCY_DIR; Path dependencyPath = new Path(String.format(parentDir, SliderUtils.getSliderVersion())); return dependencyPath; }
/** * Retrieve the version of the current Slider install * * @return the version string of the Slider release */ public static String getSliderVersion() { if (isHdp()) { return getHdpVersion(); } else { Properties props = SliderVersionInfo.loadVersionProperties(); return props.getProperty(SliderVersionInfo.APP_VERSION); } }
/** * Retrieve the version of the current Slider install * * @return the version string of the Slider release */ public static String getSliderVersion() { if (isHdp()) { return getHdpVersion(); } else { Properties props = SliderVersionInfo.loadVersionProperties(); return props.getProperty(SliderVersionInfo.APP_VERSION); } }
@Test public void testIsHdp() { Assert.assertFalse("Should be false", SliderUtils.isHdp()); }
@Test public void testIsHdp() { Assert.assertFalse("Should be false", SliderUtils.isHdp()); }