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

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

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

origin: apache/incubator-slider

/**
 * Strictly verify that windows utils is present.
 * Checks go as far as opening the file and looking for
 * the headers. 
 * @throws IOException on any problem reading the file
 * @throws FileNotFoundException if the file is not considered valid
 */
public static void maybeVerifyWinUtilsValid() throws
  IOException,
  SliderException {
 String errorText = SliderUtils.checkForRequiredNativeLibraries();
 if (!errorText.isEmpty()) {
  throw new BadClusterStateException(errorText);
 }
}
origin: org.apache.slider/slider-core

/**
 * Strictly verify that windows utils is present.
 * Checks go as far as opening the file and looking for
 * the headers. 
 * @throws IOException on any problem reading the file
 * @throws FileNotFoundException if the file is not considered valid
 */
public static void maybeVerifyWinUtilsValid() throws
  IOException,
  SliderException {
 String errorText = SliderUtils.checkForRequiredNativeLibraries();
 if (!errorText.isEmpty()) {
  throw new BadClusterStateException(errorText);
 }
}
org.apache.slider.common.toolsSliderUtilscheckForRequiredNativeLibraries

Javadoc

Check for any needed libraries being present. On Unix none are needed; on windows they must be present

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
  • 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
  • write,
  • addBuildInfo,
  • appReportToString,
  • appendToURL,
  • buildApplicationReportMap,
  • buildClasspath,
  • checkCredentialCacheFile,
  • checkPort,
  • collectionToStringList

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
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