public static boolean isHaMode(AlluxioConfiguration conf) {
    return conf.getBoolean(PropertyKey.ZOOKEEPER_ENABLED) || getMasterRpcAddresses(conf).size() > 1;
  }
public static boolean isHaMode ( AlluxioConfiguration conf ) { return conf . getBoolean ( PropertyKey . ZOOKEEPER_ENABLED ) || getMasterRpcAddresses ( conf ) . size ( ) > 1 ; }
@param conf the configuration use
@return whether the configuration specifies to run in ha mode