Repository: hbase
Updated Branches:
  refs/heads/master e8f9de785 -> eec064dcd


Add section to shell tricks on how to set and query shell configuration


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/eec064dc
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/eec064dc
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/eec064dc

Branch: refs/heads/master
Commit: eec064dcd198f0fffd94ad3274e785d3e6d5ee32
Parents: e8f9de7
Author: Michael Stack <st...@apache.org>
Authored: Mon Feb 27 19:58:37 2017 +0000
Committer: Michael Stack <st...@apache.org>
Committed: Mon Feb 27 19:58:37 2017 +0000

----------------------------------------------------------------------
 src/main/asciidoc/_chapters/shell.adoc | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/eec064dc/src/main/asciidoc/_chapters/shell.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/_chapters/shell.adoc 
b/src/main/asciidoc/_chapters/shell.adoc
index 8f1f59b..1e51a20 100644
--- a/src/main/asciidoc/_chapters/shell.adoc
+++ b/src/main/asciidoc/_chapters/shell.adoc
@@ -352,6 +352,19 @@ hbase(main):022:0> Date.new(1218920189000).toString() => 
"Sat Aug 16 20:56:29 UT
 
 To output in a format that is exactly like that of the HBase log format will 
take a little messing with 
link:http://download.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html[SimpleDateFormat].
 
+=== Query Shell Configuration
+----
+hbase(main):001:0> @shell.hbase.configuration.get("hbase.rpc.timeout")
+=> "60000"
+----
+To set a config in the shell:
+----
+hbase(main):005:0> @shell.hbase.configuration.setInt("hbase.rpc.timeout", 
61010)
+hbase(main):006:0> @shell.hbase.configuration.get("hbase.rpc.timeout")
+=> "61010"
+----
+
+
 [[tricks.pre-split]]
 === Pre-splitting tables with the HBase Shell
 You can use a variety of options to pre-split tables when creating them via 
the HBase Shell `create` command.

Reply via email to