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)
예제 #2
0
 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
예제 #4
0
 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