Repository: incubator-slider Updated Branches: refs/heads/feature/SLIDER-779_Move_to_Groovy_2.4.0 c2fbd3eb9 -> 3ec294421 (forced update)
SLIDER-734 Use slider.py for slider command invocation Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/b5da2e38 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/b5da2e38 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/b5da2e38 Branch: refs/heads/feature/SLIDER-779_Move_to_Groovy_2.4.0 Commit: b5da2e3891d51a4505da2fbfd6e230e2270c4602 Parents: fb20ace Author: tedyu <yuzhih...@gmail.com> Authored: Fri Feb 6 10:10:09 2015 -0800 Committer: tedyu <yuzhih...@gmail.com> Committed: Fri Feb 6 10:10:09 2015 -0800 ---------------------------------------------------------------------- app-packages/hbase/hbase-slider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/b5da2e38/app-packages/hbase/hbase-slider.py ---------------------------------------------------------------------- diff --git a/app-packages/hbase/hbase-slider.py b/app-packages/hbase/hbase-slider.py index 37a11df..f6f9258 100644 --- a/app-packages/hbase/hbase-slider.py +++ b/app-packages/hbase/hbase-slider.py @@ -20,7 +20,6 @@ """Invokes hbase shell after retrieving effective hbase-site.xml from a live Slider HBase cluster First argument is the name of cluster instance """ -from subprocess import call import os from os.path import expanduser from os.path import exists @@ -144,7 +143,7 @@ if not exists(local_conf_dir): shutil.copytree(hbase_conf_dir, local_conf_dir) tmpHBaseConfFile=os.path.join('/tmp', "hbase-site.xml") -call(["slider", "registry", "--getconf", "hbase-site", "--user", "hbase", "--format", "xml", "--dest", tmpHBaseConfFile, "--name", cluster_instance]) +call([SLIDER_CMD, "registry", "--getconf", "hbase-site", "--user", "hbase", "--format", "xml", "--dest", tmpHBaseConfFile, "--name", cluster_instance]) HBaseConfFile=os.path.join(local_conf_dir, "hbase-site.xml") propertyMap = {'hbase.tmp.dir' : '/tmp/hbase-tmp', "instance" : cluster_instance} writePropertiesToConfigXMLFile(tmpHBaseConfFile, HBaseConfFile, propertyMap)