You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by te...@apache.org on 2014/07/09 20:36:38 UTC

git commit: SLIDER-220 Provide script for retrieving hbase-site.xml given cluster name

Repository: incubator-slider
Updated Branches:
  refs/heads/develop c1a53057b -> 55aa2b1f6


SLIDER-220 Provide script for retrieving hbase-site.xml given cluster name


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/55aa2b1f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/55aa2b1f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/55aa2b1f

Branch: refs/heads/develop
Commit: 55aa2b1f6bbb2f34883e392c9df50f8c68559121
Parents: c1a5305
Author: tedyu <yu...@gmail.com>
Authored: Wed Jul 9 11:36:35 2014 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Wed Jul 9 11:36:35 2014 -0700

----------------------------------------------------------------------
 get-hbase-site.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/55aa2b1f/get-hbase-site.sh
----------------------------------------------------------------------
diff --git a/get-hbase-site.sh b/get-hbase-site.sh
new file mode 100755
index 0000000..32942a2
--- /dev/null
+++ b/get-hbase-site.sh
@@ -0,0 +1,8 @@
+tuple=`slider status $1 | grep "info.am.web.url"`
+FS=":"
+url=`echo $tuple | awk '{split($0,array,": ")} END{print array[2]}'`
+url="${url%,}"
+url="${url%\"}"
+url="${url#\"}"
+url="${url}ws/v1/slider/publisher/slider/hbase-site.xml"
+curl -k -o hbase-site.xml $url