You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by sr...@apache.org on 2015/03/12 18:06:52 UTC
[06/10] storm git commit: Adding curl examples to STORM-REST-UI.md.
Adding curl examples to STORM-REST-UI.md.
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/ef163139
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/ef163139
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/ef163139
Branch: refs/heads/master
Commit: ef163139ced986ee4fd334bc8c53e661dde61692
Parents: e353fe0
Author: Parth Brahmbhatt <br...@gmail.com>
Authored: Sun Mar 8 13:03:24 2015 -0700
Committer: Parth Brahmbhatt <br...@gmail.com>
Committed: Sun Mar 8 13:03:24 2015 -0700
----------------------------------------------------------------------
STORM-UI-REST-API.md | 7 +++++++
storm-core/src/jvm/backtype/storm/StormSubmitter.java | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/ef163139/STORM-UI-REST-API.md
----------------------------------------------------------------------
diff --git a/STORM-UI-REST-API.md b/STORM-UI-REST-API.md
index 9a0043a..72b07d4 100644
--- a/STORM-UI-REST-API.md
+++ b/STORM-UI-REST-API.md
@@ -38,6 +38,13 @@ In a secure environment an authenticated user can impersonate another user. To i
to learn more about how to setup impersonation ACLs and authorization. The rest API uses the same configs and acls that
are used by nimbus.
+Examples:
+
+```no-highlight
+ 1. http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1425844354\?doAsUser=testUSer1
+ 2. curl 'http://localhost:8080/api/v1/topology/wordcount-1-1425844354/activate' -X POST -H 'doAsUser:testUSer1'
+```
+
## GET Operations
### /api/v1/cluster/configuration (GET)
http://git-wip-us.apache.org/repos/asf/storm/blob/ef163139/storm-core/src/jvm/backtype/storm/StormSubmitter.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/StormSubmitter.java b/storm-core/src/jvm/backtype/storm/StormSubmitter.java
index 63cc5a1..a4ccf5f 100644
--- a/storm-core/src/jvm/backtype/storm/StormSubmitter.java
+++ b/storm-core/src/jvm/backtype/storm/StormSubmitter.java
@@ -268,7 +268,7 @@ public class StormSubmitter {
@SuppressWarnings("unchecked")
public static void submitTopology(String name, Map stormConf, StormTopology topology, SubmitOptions opts,
ProgressListener progressListener) throws AlreadyAliveException, InvalidTopologyException, AuthorizationException {
-
+ submitTopologyAs(name, stormConf, topology, opts, progressListener, null);
}
/**