in metron-platform/metron-common/src/main/scripts/cluster_info.py [0:0]
def get_cli_args(self):
parser = OptionParser()
parser.add_option("-a", "--ambari-host",
action="store",
type="string",
dest="ambari_host",
help="Connect to Ambari via the supplied host:port",
default="node1:8080",
metavar="HOST:PORT")
parser.add_option("-c", "--cluster-name",
action="store",
type="string",
dest="cluster_name",
help="Name of cluster in Ambari to retrieve info for",
default="metron_cluster",
metavar="NAME")
parser.add_option("-o", "--out-dir",
action="store",
type="string",
dest="out_dir",
help="Write debugging data to specified root directory",
default=".",
metavar="DIRECTORY")
parser.add_option("-s", "--storm-host",
action="store",
type="string",
dest="storm_host",
help="Connect to Storm via the supplied host:port",
default="node1:8744",
metavar="HOST:PORT")
parser.add_option("-b", "--broker_list",
action="store",
type="string",
dest="broker_list",
help="Connect to Kafka via the supplied comma-delimited host:port list",
default="node1:6667",
metavar="HOST1:PORT,HOST2:PORT")
parser.add_option("-z", "--zookeeper_quorum",
action="store",
type="string",
dest="zookeeper_quorum",
help="Connect to Zookeeper via the supplied comma-delimited host:port quorum list",
default="node1:2181",
metavar="HOST1:PORT,HOST2:PORT")
parser.add_option("-m", "--metron_home",
action="store",
type="string",
dest="metron_home",
help="Metron home directory",
default="/usr/metron/0.7.2",
metavar="DIRECTORY")
parser.add_option("-p", "--hdp_home",
action="store",
type="string",
dest="hdp_home",
help="HDP home directory",
default="/usr/hdp/current",
metavar="DIRECTORY")
return parser.parse_args()