def __init__(self,table_name): self.logger = EtlLogger.get_logger(table_name) # use class name as the log name self.lock = JobLock(table_name) # use class name as the lock name self.env = yaml.load(open(config['ENV'])) self.config=config self.table = sqoop_table(table_name,config,self.logger) self.json = sqoop_json(table_name,config,self.logger) self.pyhive = sqoop_pyhive(table_name,config,self.logger)
def __init__(self, table_name): self.logger = EtlLogger.get_logger( table_name) # use class name as the log name self.lock = JobLock(table_name) # use class name as the lock name self.env = yaml.load(open(config['ENV'])) self.config = config self.table = sqoop_table(table_name, config, self.logger) self.json = sqoop_json(table_name, config, self.logger) self.pyhive = sqoop_pyhive(table_name, config, self.logger)
def __init__(self,table_name,config,logger): self.logger = logger # use class name as the log name self.env = yaml.load(open(config['ENV'])) self.table = sqoop_table(table_name,config,logger) self.json = sqoop_json(table_name,config,logger) self.config=config
def __init__(self, table_name, config, logger): self.logger = logger # use class name as the log name self.env = yaml.load(open(config['ENV'])) self.table = sqoop_table(table_name, config, logger) self.json = sqoop_json(table_name, config, logger) self.config = config