public static void main(String[] args) throws Exception {
Map conf=StormConfig.read_storm_config();
String host=String.valueOf(conf.get(Config.NIMBUS_HOST));
Integer port=StormUtils.parseInt(conf.get(Config.NIMBUS_THRIFT_PORT));
TFramedTransport transport=new TFramedTransport(new TSocket(host, port));
TBinaryProtocol prot=new TBinaryProtocol(transport);
Nimbus.Client client=new Nimbus.Client(prot);
transport.open();
try{
if(args[0].equals("cluster"))