{"action":"created","comment":{"url":"https://api.github.com/repos/apache/storm/pulls/comments/31825223","id":31825223,"diff_hunk":"@@ -304,6 +304,19 @@ def rebalance(*args):\n         jvmtype=\"-client\",\n         extrajars=[USER_CONF_DIR, STORM_BIN_DIR])\n \n+def get_errors(*args):\n+    \"\"\"Syntax: [storm get-errors topology-name]\n+\n+    Get the latest error from the running topology. The returned result contains\n+    the key value pairs for component-name and component-error for the components in error.\n+    The result is returned in json format.\n+    \"\"\"\n+    exec_storm_class(\n+        \"backtype.storm.command.get_errors\",\n+        args=args,\n+        jvmtype=\"-client\",\n+        extrajars=[USER_CONF_DIR, STORM_DIR + \"/bin\"])","path":"bin/storm.py","position":15,"original_position":15,"commit_id":"ff187f6ffbfe58c9bfc6b1b712f6c6ae62652b34","original_commit_id":"ff187f6ffbfe58c9bfc6b1b712f6c6ae62652b34","user":{"login":"d2r","id":905298,"avatar_url":"https://avatars.githubusercontent.com/u/905298?v=3","gravatar_id":"","url":"https://api.github.com/users/d2r","html_url":"https://github.com/d2r","followers_url":"https://api.github.com/users/d2r/followers","following_url":"https://api.github.com/users/d2r/following{/other_user}","gists_url":"https://api.github.com/users/d2r/gists{/gist_id}","starred_url":"https://api.github.com/users/d2r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d2r/subscriptions","organizations_url":"https://api.github.com/users/d2r/orgs","repos_url":"https://api.github.com/users/d2r/repos","events_url":"https://api.github.com/users/d2r/events{/privacy}","received_events_url":"https://api.github.com/users/d2r/received_events","type":"User","site_admin":false},"body":"Let's use `os.path.join(STORM_DIR, \"bin\")` here.","created_at":"2015-06-05T15:56:38Z","updated_at":"2015-06-05T15:56:38Z","html_url":"https://github.com/apache/storm/pull/576#discussion_r31825223","pull_request_url":"https://api.github.com/repos/apache/storm/pulls/576","_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/comments/31825223"},"html":{"href":"https://github.com/apache/storm/pull/576#discussion_r31825223"},"pull_request":{"href":"https://api.github.com/repos/apache/storm/pulls/576"}}},"pull_request":{"url":"https://api.github.com/repos/apache/storm/pulls/576","id":36898125,"html_url":"https://github.com/apache/storm/pull/576","diff_url":"https://github.com/apache/storm/pull/576.diff","patch_url":"https://github.com/apache/storm/pull/576.patch","issue_url":"https://api.github.com/repos/apache/storm/issues/576","number":576,"state":"open","locked":false,"title":"YSTORM-552 Adding new cli for getting latest errors from running storm topology","user":{"login":"snikhil5","id":7913986,"avatar_url":"https://avatars.githubusercontent.com/u/7913986?v=3","gravatar_id":"","url":"https://api.github.com/users/snikhil5","html_url":"https://github.com/snikhil5","followers_url":"https://api.github.com/users/snikhil5/followers","following_url":"https://api.github.com/users/snikhil5/following{/other_user}","gists_url":"https://api.github.com/users/snikhil5/gists{/gist_id}","starred_url":"https://api.github.com/users/snikhil5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikhil5/subscriptions","organizations_url":"https://api.github.com/users/snikhil5/orgs","repos_url":"https://api.github.com/users/snikhil5/repos","events_url":"https://api.github.com/users/snikhil5/events{/privacy}","received_events_url":"https://api.github.com/users/snikhil5/received_events","type":"User","site_admin":false},"body":"This has been tested with the latest src code.","created_at":"2015-06-04T02:52:36Z","updated_at":"2015-06-05T15:56:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36a398383f491c4a15a69a9a905044ffe7eea6d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/storm/pulls/576/commits","review_comments_url":"https://api.github.com/repos/apache/storm/pulls/576/comments","review_comment_url":"https://api.github.com/repos/apache/storm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/storm/issues/576/comments","statuses_url":"https://api.github.com/repos/apache/storm/statuses/ff187f6ffbfe58c9bfc6b1b712f6c6ae62652b34","head":{"label":"snikhil5:error-cli","ref":"error-cli","sha":"ff187f6ffbfe58c9bfc6b1b712f6c6ae62652b34","user":{"login":"snikhil5","id":7913986,"avatar_url":"https://avatars.githubusercontent.com/u/7913986?v=3","gravatar_id":"","url":"https://api.github.com/users/snikhil5","html_url":"https://github.com/snikhil5","followers_url":"https://api.github.com/users/snikhil5/followers","following_url":"https://api.github.com/users/snikhil5/following{/other_user}","gists_url":"https://api.github.com/users/snikhil5/gists{/gist_id}","starred_url":"https://api.github.com/users/snikhil5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikhil5/subscriptions","organizations_url":"https://api.github.com/users/snikhil5/orgs","repos_url":"https://api.github.com/users/snikhil5/repos","events_url":"https://api.github.com/users/snikhil5/events{/privacy}","received_events_url":"https://api.github.com/users/snikhil5/received_events","type":"User","site_admin":false},"repo":{"id":20927147,"name":"incubator-storm","full_name":"snikhil5/incubator-storm","owner":{"login":"snikhil5","id":7913986,"avatar_url":"https://avatars.githubusercontent.com/u/7913986?v=3","gravatar_id":"","url":"https://api.github.com/users/snikhil5","html_url":"https://github.com/snikhil5","followers_url":"https://api.github.com/users/snikhil5/followers","following_url":"https://api.github.com/users/snikhil5/following{/other_user}","gists_url":"https://api.github.com/users/snikhil5/gists{/gist_id}","starred_url":"https://api.github.com/users/snikhil5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snikhil5/subscriptions","organizations_url":"https://api.github.com/users/snikhil5/orgs","repos_url":"https://api.github.com/users/snikhil5/repos","events_url":"https://api.github.com/users/snikhil5/events{/privacy}","received_events_url":"https://api.github.com/users/snikhil5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snikhil5/incubator-storm","description":"Mirror of Apache Storm","fork":true,"url":"https://api.github.com/repos/snikhil5/incubator-storm","forks_url":"https://api.github.com/repos/snikhil5/incubator-storm/forks","keys_url":"https://api.github.com/repos/snikhil5/incubator-storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snikhil5/incubator-storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snikhil5/incubator-storm/teams","hooks_url":"https://api.github.com/repos/snikhil5/incubator-storm/hooks","issue_events_url":"https://api.github.com/repos/snikhil5/incubator-storm/issues/events{/number}","events_url":"https://api.github.com/repos/snikhil5/incubator-storm/events","assignees_url":"https://api.github.com/repos/snikhil5/incubator-storm/assignees{/user}","branches_url":"https://api.github.com/repos/snikhil5/incubator-storm/branches{/branch}","tags_url":"https://api.github.com/repos/snikhil5/incubator-storm/tags","blobs_url":"https://api.github.com/repos/snikhil5/incubator-storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snikhil5/incubator-storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snikhil5/incubator-storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/snikhil5/incubator-storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snikhil5/incubator-storm/statuses/{sha}","languages_url":"https://api.github.com/repos/snikhil5/incubator-storm/languages","stargazers_url":"https://api.github.com/repos/snikhil5/incubator-storm/stargazers","contributors_url":"https://api.github.com/repos/snikhil5/incubator-storm/contributors","subscribers_url":"https://api.github.com/repos/snikhil5/incubator-storm/subscribers","subscription_url":"https://api.github.com/repos/snikhil5/incubator-storm/subscription","commits_url":"https://api.github.com/repos/snikhil5/incubator-storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/snikhil5/incubator-storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/snikhil5/incubator-storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/snikhil5/incubator-storm/issues/comments{/number}","contents_url":"https://api.github.com/repos/snikhil5/incubator-storm/contents/{+path}","compare_url":"https://api.github.com/repos/snikhil5/incubator-storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snikhil5/incubator-storm/merges","archive_url":"https://api.github.com/repos/snikhil5/incubator-storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snikhil5/incubator-storm/downloads","issues_url":"https://api.github.com/repos/snikhil5/incubator-storm/issues{/number}","pulls_url":"https://api.github.com/repos/snikhil5/incubator-storm/pulls{/number}","milestones_url":"https://api.github.com/repos/snikhil5/incubator-storm/milestones{/number}","notifications_url":"https://api.github.com/repos/snikhil5/incubator-storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snikhil5/incubator-storm/labels{/name}","releases_url":"https://api.github.com/repos/snikhil5/incubator-storm/releases{/id}","created_at":"2014-06-17T14:40:19Z","updated_at":"2014-09-18T08:13:27Z","pushed_at":"2015-06-03T20:27:21Z","git_url":"git://github.com/snikhil5/incubator-storm.git","ssh_url":"git@github.com:snikhil5/incubator-storm.git","clone_url":"https://github.com/snikhil5/incubator-storm.git","svn_url":"https://github.com/snikhil5/incubator-storm","homepage":null,"size":19932,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"2154048fd123a0960a4f5854ec4dd436bb775329","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":14135470,"name":"storm","full_name":"apache/storm","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/storm","description":"Mirror of Apache Storm","fork":false,"url":"https://api.github.com/repos/apache/storm","forks_url":"https://api.github.com/repos/apache/storm/forks","keys_url":"https://api.github.com/repos/apache/storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/storm/teams","hooks_url":"https://api.github.com/repos/apache/storm/hooks","issue_events_url":"https://api.github.com/repos/apache/storm/issues/events{/number}","events_url":"https://api.github.com/repos/apache/storm/events","assignees_url":"https://api.github.com/repos/apache/storm/assignees{/user}","branches_url":"https://api.github.com/repos/apache/storm/branches{/branch}","tags_url":"https://api.github.com/repos/apache/storm/tags","blobs_url":"https://api.github.com/repos/apache/storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/storm/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/storm/languages","stargazers_url":"https://api.github.com/repos/apache/storm/stargazers","contributors_url":"https://api.github.com/repos/apache/storm/contributors","subscribers_url":"https://api.github.com/repos/apache/storm/subscribers","subscription_url":"https://api.github.com/repos/apache/storm/subscription","commits_url":"https://api.github.com/repos/apache/storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/storm/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/storm/contents/{+path}","compare_url":"https://api.github.com/repos/apache/storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/storm/merges","archive_url":"https://api.github.com/repos/apache/storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/storm/downloads","issues_url":"https://api.github.com/repos/apache/storm/issues{/number}","pulls_url":"https://api.github.com/repos/apache/storm/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/storm/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/storm/labels{/name}","releases_url":"https://api.github.com/repos/apache/storm/releases{/id}","created_at":"2013-11-05T08:00:14Z","updated_at":"2015-06-05T14:24:35Z","pushed_at":"2015-06-05T15:47:44Z","git_url":"git://github.com/apache/storm.git","ssh_url":"git@github.com:apache/storm.git","clone_url":"https://github.com/apache/storm.git","svn_url":"https://github.com/apache/storm","homepage":null,"size":982120,"stargazers_count":2004,"watchers_count":2004,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1336,"mirror_url":"git://git.apache.org/incubator-storm.git","open_issues_count":69,"forks":1336,"open_issues":69,"watchers":2004,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/576"},"html":{"href":"https://github.com/apache/storm/pull/576"},"issue":{"href":"https://api.github.com/repos/apache/storm/issues/576"},"comments":{"href":"https://api.github.com/repos/apache/storm/issues/576/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/storm/pulls/576/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/storm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/storm/pulls/576/commits"},"statuses":{"href":"https://api.github.com/repos/apache/storm/statuses/ff187f6ffbfe58c9bfc6b1b712f6c6ae62652b34"}}}}