def __init__(self, conf): self.conf = conf self.hdfsUtil = HdfsUtil(conf) self.pgUtil = PostgresUtil(conf) self.segDirs = self.getSegmentDirs()
def __init__(self, conf): self.conf = conf self.hdfsUtil = HdfsUtil(conf) self.pgUtil = PostgresUtil(conf)
dest="configFile", help="Configuration file (default phd-metrics.ini)", default="phd-metrics.ini") parser.add_option( "-s", "--sqlfile", dest="sqlFile", help="Filename to write SQL statements to (default none)", default=None) conf = Config(parser, sys.argv[2:]) pgutil = PostgresUtil(conf) pgutil.open() HdfsUtil(conf).printReport() HawqUtil(conf).printReport() HiveUtil(conf).printReport() UserUtil(conf).printReport() FsUtil(conf).printReport() pgutil.close() # Local filesystem option elif sys.argv[1] == "fs-util": parser = OptionParser() parser.add_option("-c", "--config", dest="configFile", help="Configuration file (default phd-metrics.ini)", default="phd-metrics.ini")