def __init__(self, param, host, script_home): self.param = param self.host = host self.dir = es.DataRoot(param).dir('mongo-configdb-' + es.getuser()) self.mongobin = param.get('mongo_bin') if (self.mongobin is None or self.mongobin == ''): self.mongobin = os.path.join(os.path.dirname(script_home), 'mongodb', 'bin')
def __init__(self, param, host, script_home): self.param = param self.host = host self.src = param.get('omid_server') if (src.src is None or src.src == ''): self.src = os.path.join(os.path.dirname(script_home), 'omid', 'tso-server') self.dir = es.DataRoot(param).dir('omid-' + es.getuser()) self.omid = os.path.join(self.dir, 'bin', 'omid.sh')
def __init__(self, param, host, script_home): self.param = param self.host = host self.port = shardsvr_port self.dir = es.DataRoot(param).dir('mongodb-' + es.getuser()) self.mongobin = os.path.join(os.path.dirname(script_home), 'mongodb', 'bin') self.mongos = param['mongos'].split(',')[0] self.mongos_port = mongos_port
def __init__(self, data, host, sys_dirs): self.data = data self.hconf = hb.HBaseConfig(data) self.home = data.get('hbase_home') if (self.home is None or self.home == ''): self.home = os.path.join(sys_dirs.home, 'hbase') self.hadoop = data.get('hadoop_home') if (self.hadoop is None or self.hadoop == ''): self.hadoop = os.path.join(sys_dirs.home, 'hadoop') self.data_dir = es.DataRoot(data).dir('hbase-' + es.getuser()) self.host = host self.master = self.hconf.master self.java_home = data.get('java_home', '')