Tabnine Logo
SliderUtils.getHdpVersion
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.slider/slider-core

/**
 * Query to find if it is an HDP cluster
 * 
 * @return true if this is invoked in an HDP cluster or false otherwise
 */
public static boolean isHdp() {
 return StringUtils.isNotEmpty(getHdpVersion());
}
origin: apache/incubator-slider

/**
 * Query to find if it is an HDP cluster
 * 
 * @return true if this is invoked in an HDP cluster or false otherwise
 */
public static boolean isHdp() {
 return StringUtils.isNotEmpty(getHdpVersion());
}
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: apache/incubator-slider

@Test
public void testGetHdpVersion() {
 String hdpVersion = "2.3.2.0-2766";
 Assert.assertEquals("Version should be empty", null,
   SliderUtils.getHdpVersion());
}
origin: org.apache.slider/slider-core

@Test
public void testGetHdpVersion() {
 String hdpVersion = "2.3.2.0-2766";
 Assert.assertEquals("Version should be empty", null,
   SliderUtils.getHdpVersion());
}
org.apache.slider.common.toolsSliderUtilsgetHdpVersion

Javadoc

Retrieve the HDP version if it is an HDP cluster, or null otherwise. It first checks if system property HDP_VERSION is defined. If not it checks if system env HDP_VERSION is defined.

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
  • isHdp
    Query to find if it is an HDP cluster
  • 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

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Best plugins for Eclipse
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