I have followed an example from the below post
How to submit a topology in storm production cluster using IDE
Below is my implementation
TopologyBuilder builder = new TopologyBuilder();
Map storm_conf = Utils.readStormConfig();
storm_conf.put("nimbus.host", "localhost");
Nimbus.Client client = NimbusClient.getConfiguredClient(storm_conf)
.getClient();
String inputJar = "/home/user/TestType-1.0.jar";
NimbusClient nimbus = null;
try {
nimbus = new NimbusClient(storm_conf, "localhost", 6627);
} catch (TTransportException e) {
System.out.println("unable to connect to client");
e.printStackTrace();
}
System.setProperty("storm.jar", "/home/user/TestType-1.0.jar");
String jsonConf = JSONValue.toJSONString(storm_conf);
try {
nimbus.getClient().submitTopology("SellerPageTypeTopology",
"/home/user/TestType-1.0.jar", jsonConf, builder.createTopology());
} catch (AlreadyAliveException e) {
e.printStackTrace();
} catch (InvalidTopologyException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
i was able to deploy topology successfully. In the storm Ui i was able to see topology active,But spout and bolt details are missing. Any idea what am i missing missing. Thanks for the help.