congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SliderUtils.isHdp
Code IndexAdd Tabnine to your IDE (free)

How to use
isHdp
method
in
org.apache.slider.common.tools.SliderUtils

Best Java code snippets using org.apache.slider.common.tools.SliderUtils.isHdp (Showing top 6 results out of 315)

origin: apache/incubator-slider

/**
 * 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;
}
origin: org.apache.slider/slider-core

/**
 * 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;
}
origin: apache/incubator-slider

/**
 * 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);
 }
}
origin: org.apache.slider/slider-core

/**
 * 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);
 }
}
origin: org.apache.slider/slider-core

@Test
public void testIsHdp() {
 Assert.assertFalse("Should be false", SliderUtils.isHdp());
}
origin: apache/incubator-slider

@Test
public void testIsHdp() {
 Assert.assertFalse("Should be false", SliderUtils.isHdp());
}
org.apache.slider.common.toolsSliderUtilsisHdp

Javadoc

Query to find if it is an HDP cluster

Popular methods of SliderUtils

  • buildEnvMap
  • isSet
  • extractDomainNameFromFQDN
  • extractFirstLine
    Extract the first line of a multi-line string. This is typically used to prune the stack trace appen
  • getApplicationResourceInputStream
  • getHdpVersion
    Retrieve the HDP version if it is an HDP cluster, or null otherwise. It first checks if system prope
  • listDir
    List a directory in the local filesystem
  • sortApplicationsByMostRecent
    Sorts the given list of application reports, most recently started or finished instance first.
  • truncate
    Truncate the given string to a maximum length provided with a pad (...) added to the end if expected
  • write
    Write bytes to a file
  • addBuildInfo
    Add the cluster build information; this will include Hadoop details too
  • appReportToString
  • addBuildInfo,
  • appReportToString,
  • appendToURL,
  • buildApplicationReportMap,
  • buildClasspath,
  • checkCredentialCacheFile,
  • checkForRequiredNativeLibraries,
  • checkPort,
  • collectionToStringList

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JFrame (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now