class ConfigEngine(object): def __init__(self): self.zookeeper = Zookeeper() self.hadoop = Hadoop() self.hbase = HBase() self.hive = Hive() self.ignite = Ignite() def waiting(self): while True: print('Waiting...') time.sleep(5) def configure(self): self.zookeeper.configure() self.hadoop.configure() # self.hbase.configure() self.hive.configure() self.ignite.configure()
from hive import Hive app = Hive() app.configure() app.initialize_orm()