Class BaseUtilsHelper

java.lang.Object
com.mapr.baseutils.BaseUtilsHelper

public class BaseUtilsHelper extends Object
  • Field Details

    • HOST_NAME_FILE_PATH

      public static final String HOST_NAME_FILE_PATH
    • clusterId

      public static volatile String clusterId
  • Constructor Details

    • BaseUtilsHelper

      public BaseUtilsHelper()
  • Method Details

    • getClusterId

      public static String getClusterId()
    • getPathToMaprHome

      @Deprecated public static String getPathToMaprHome()
      Deprecated.
      Use {@link Installation#.getMapRHome()}
      Returns:
      The base installation directory of MapR, usually '/opt/mapr'
    • getMapRHostName

      public static String getMapRHostName()
      Reads the hostname from /opt/mapr/hostname file.
      Returns:
      the hostname
    • readMapRHostNameFromFile

      public static String readMapRHostNameFromFile(String filePath)
    • setMapRHostName

      public static void setMapRHostName(String host)
    • getUrlScheme

      public static String getUrlScheme()
    • getStandardUiPortProperty

      public static String getStandardUiPortProperty()
    • getUIPortProperty

      public static String getUIPortProperty()