Repository: incubator-slider
Updated Branches:
  refs/heads/develop 038e96cbf -> 861c6116b


Remove unused hbase scripts


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

Branch: refs/heads/develop
Commit: 861c6116bd0877d936a4382c9372eab6f0fc623f
Parents: 038e96c
Author: tedyu <[email protected]>
Authored: Mon Feb 9 11:20:39 2015 -0800
Committer: tedyu <[email protected]>
Committed: Mon Feb 9 11:20:39 2015 -0800

----------------------------------------------------------------------
 app-packages/hbase/get-hbase-site.py | 48 -------------------------------
 app-packages/hbase/get-hbase-site.sh | 32 ---------------------
 2 files changed, 80 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/861c6116/app-packages/hbase/get-hbase-site.py
----------------------------------------------------------------------
diff --git a/app-packages/hbase/get-hbase-site.py 
b/app-packages/hbase/get-hbase-site.py
deleted file mode 100644
index 9760781..0000000
--- a/app-packages/hbase/get-hbase-site.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-#
-# 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.
-
-
-"""Gets hbase-site.xml from running HBase instance
-First argument is the name of cluster instance
-"""
-
-import sys
-import urllib2
-import subprocess
-
-f=subprocess.Popen("slider status "+sys.argv[1], shell=True, 
stdout=subprocess.PIPE).stdout
-for line in f:
-  pos = line.find("info.am.web.url")
-  if pos > 0 :
-    part = line[(pos+20) :]
-    endPos = part.find("\"")
-    url = part[: (endPos-1)]
-    url = url + "/ws/v1/slider/publisher/slider/hbase-site.xml"
-    print url
-    response = urllib2.urlopen(url)
-    html = response.read()
-
-    fout=open("hbase-site.xml", "w")
-    fout.write(html)
-    fout.close()
-    f.close()
-
-    sys.exit(0)
-
-print "info.am.web.url key was not found for " + sys.argv[1]
-sys.exit(1)

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/861c6116/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
deleted file mode 100755
index 0ece42a..0000000
--- a/app-packages/hbase/get-hbase-site.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-# 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.
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-#
-tuple=`slider status $1 | grep "info.am.web.url"`
-echo $tuple
-FS=":"
-url=`echo $tuple | awk '{split($0,array,": ")} END{print array[2]}'`
-url="${url%,}"
-url="${url%\"}"
-url="${url#\"}"
-siteurl="${url}ws/v1/slider/publisher/slider/hbase-site.xml"
-curl -k -o hbase-site.dnld $siteurl
-grep -v 'hbase.tmp.dir' hbase-site.dnld > hbase-site.xml
-
-linksurl="${url}ws/v1/slider/publisher/slider/quicklinks"
-curl -k -o links.json $linksurl
-python $DIR/links.py
-#| sed -e 's/\/\///g' | awk 'BEGIN { FS = ":" } ; { print $2 }'

Reply via email to