From 19c3663119f346934decc121919beefcbb03698b Mon Sep 17 00:00:00 2001 From: stack Date: Thu, 6 Dec 2018 23:05:21 -0800 Subject: [PATCH] HBASE-21567 Allow overriding configs starting up the shell Adds support for -D as option to 'hbase shell' --- bin/hirb.rb | 40 +++++++++++++++++++++----- src/main/asciidoc/_chapters/shell.adoc | 16 +++++++++++ 2 files changed, 49 insertions(+), 7 deletions(-) diff --git a/bin/hirb.rb b/bin/hirb.rb index 04097b4204e..6b8255cb95d 100644 --- a/bin/hirb.rb +++ b/bin/hirb.rb @@ -54,21 +54,47 @@ $LOAD_PATH.unshift Pathname.new(sources) cmdline_help = < @shell.hbase.configuration.get("hbase.zookeeper.quorum") +=> "ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org" +hbase(main):002:0> @shell.hbase.configuration.get("raining") +=> "false" +---- + == Shell Tricks === Table variables