<s> import sahara . plugins . mapr . domain . configuration_file as bcf <EOL> import sahara . plugins . mapr . domain . node_process as np <EOL> import sahara . plugins . mapr . domain . service as s <EOL> import sahara . plugins . mapr . util . validation_utils as vu <EOL> HBASE_MASTER = np . NodeProcess ( <EOL> name = '<STR_LIT>' , <EOL> ui_name = '<STR_LIT>' , <EOL> package = '<STR_LIT>' , <EOL> open_ports = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ) <EOL> HBASE_REGION_SERVER = np . NodeProcess ( <EOL> name = '<STR_LIT>' , <EOL> ui_name = '<STR_LIT>' , <EOL> package = '<STR_LIT>' , <EOL> open_ports = [ <NUM_LIT> ] <EOL> ) <EOL> HBASE_THRIFT = np . NodeProcess ( <EOL> name = '<STR_LIT>' , <EOL> ui_name = '<STR_LIT>' , <EOL> package = '<STR_LIT>' , <EOL> open_ports = [ <NUM_LIT> ] <EOL> ) <EOL> HBASE_REST = np . NodeProcess ( <EOL> name = "<STR_LIT>" , <EOL> ui_name = "<STR_LIT>" , <EOL> package = "<STR_LIT>" , <EOL> open_ports = [ <NUM_LIT> , <NUM_LIT> ] , <EOL> ) <EOL> class HBase ( s . Service ) : <EOL> def __init__ ( self ) : <EOL> super ( HBase , self ) . __init__ ( ) <EOL> self . _name = '<STR_LIT>' <EOL> self . _ui_name = '<STR_LIT>' <EOL> self . _node_processes = [ <EOL> HBASE_MASTER , <EOL> HBASE_REGION_SERVER , <EOL> HBASE_THRIFT , <EOL> ] <EOL> self . _cluster_defaults = [ '<STR_LIT>' ] <EOL> self . _validation_rules = [ <EOL> vu . at_least ( <NUM_LIT:1> , HBASE_MASTER ) , <EOL> vu . at_least ( <NUM_LIT:1> , HBASE_REGION_SERVER ) , <EOL> ] <EOL> self . _ui_info = [ <EOL> ( "<STR_LIT>" , HBASE_MASTER , "<STR_LIT>" ) , <EOL> ] <EOL> def get_config_files ( self , cluster_context , configs , instance = None ) : <EOL> hbase_site = bcf . HadoopXML ( "<STR_LIT>" ) <EOL> hbase_site . remote_path = self . conf_dir ( cluster_context ) <EOL> if instance : <EOL> hbase_site . fetch ( instance ) <EOL> hbase_site . load_properties ( configs ) <EOL> return [ hbase_site ] <EOL> class HBaseV094 ( HBase ) : <EOL> def __init__ ( self ) : <EOL> super ( HBaseV094 , self ) . __init__ ( ) <EOL> self . _version = '<STR_LIT>' <EOL> self . _dependencies = [ ( '<STR_LIT>' , self . version ) ] <EOL> class HBaseV0987 ( HBase ) : <EOL> def __init__ ( self ) : <EOL> super ( HBaseV0987 , self ) . __init__ ( ) <EOL> self . _version = '<STR_LIT>' <EOL> self . _dependencies = [ ( '<STR_LIT>' , self . version ) ] <EOL> class HBaseV0989 ( HBase ) : <EOL> def __init__ ( self ) : <EOL> super ( HBaseV0989 , self ) . __init__ ( ) <EOL> self . _version = '<STR_LIT>' <EOL> self . _dependencies = [ ( '<STR_LIT>' , self . version ) ] <EOL> self . _node_processes . append ( HBASE_REST ) <EOL> self . _ui_info . append ( <EOL> ( "<STR_LIT>" , HBASE_REST , "<STR_LIT>" ) , <EOL> ) <EOL> class HBaseV09812 ( HBase ) : <EOL> def __init__ ( self ) : <EOL> super ( HBaseV09812 , self ) . __init__ ( ) <EOL> self . _version = "<STR_LIT>" <EOL> self . _dependencies = [ ( "<STR_LIT>" , self . version ) ] <EOL> self . _node_processes . append ( HBASE_REST ) <EOL> self . _ui_info . append ( <EOL> ( "<STR_LIT>" , HBASE_REST , "<STR_LIT>" ) , <EOL> ) </s>
