def __init__(self, zkQuorum, topic, hbtable): self.zkQuorum = zkQuorum self.topic = topic self.hbase = Myhbase(hbtable) self.redis = Myredis()
def __init__(self): self.redis = Myredis() self.gtrend = Gtrend() self.kafka = MyKafka('NOTHS-trends-topic')