Github user HeartSaVioR commented on a diff in the pull request:
https://github.com/apache/storm/pull/1512#discussion_r68336175
--- Diff:
external/storm-hdfs/src/test/java/org/apache/storm/hdfs/trident/TridentSequenceTopology.java
---
@@ -73,14 +75,20 @@ public static StormTopology buildTopology(String
hdfsUrl){
public static void main(String[] args) throws Exception {
Config conf = new Config();
conf.setMaxSpoutPending(5);
- if (args.length == 1) {
+
+ Yaml yaml = new Yaml();
+ InputStream in = new FileInputStream(args[1]);
+ Map<String, Object> yamlConf = (Map<String, Object>) yaml.load(in);
+ in.close();
+ conf.put("hdfs.config", yamlConf);
+
+ if (args.length == 2) {
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("wordCounter", conf,
buildTopology(args[0]));
Thread.sleep(120 * 1000);
- }
- else if(args.length == 2) {
+ } else if(args.length == 3) {
conf.setNumWorkers(3);
- StormSubmitter.submitTopology(args[1], conf,
buildTopology(args[0]));
+ StormSubmitter.submitTopology(args[2], conf,
buildTopology(args[0]));
} else{
System.out.println("Usage: TridentFileTopology <hdfs url>
[topology name]");
--- End diff --
@csivaguru same here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---