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

[40/50] [abbrv] git commit: SLIDER-220 Provide script for retrieving hbase-site.xml given cluster name

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/80424c1d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/80424c1d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/80424c1d

Branch: refs/heads/master
Commit: 80424c1d57328081fcb37d4a6d17f9836206f61c
Parents: 55aa2b1
Author: tedyu <yu...@gmail.com>
Authored: Wed Jul 9 12:53:23 2014 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Wed Jul 9 12:53:23 2014 -0700

----------------------------------------------------------------------
 app-packages/hbase/get-hbase-site.sh | 24 ++++++++++++++++++++++++
 get-hbase-site.sh                    |  8 --------
 2 files changed, 24 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/80424c1d/app-packages/hbase/get-hbase-site.sh
----------------------------------------------------------------------
diff --git a/app-packages/hbase/get-hbase-site.sh b/app-packages/hbase/get-hbase-site.sh
new file mode 100755
index 0000000..0edac30
--- /dev/null
+++ b/app-packages/hbase/get-hbase-site.sh
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+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

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/80424c1d/get-hbase-site.sh
----------------------------------------------------------------------
diff --git a/get-hbase-site.sh b/get-hbase-site.sh
deleted file mode 100755
index 32942a2..0000000
--- a/get-hbase-site.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-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