You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/interpreter/hbase.md
+33-3Lines changed: 33 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,18 @@ group: manual
10
10
[HBase Shell](http://hbase.apache.org/book.html#shell) is a JRuby IRB client for Apache HBase. This interpreter provides all capabilities of Apache HBase shell within Apache Zeppelin. The interpreter assumes that Apache HBase client software has been installed and it can connect to the Apache HBase cluster from the machine on where Apache Zeppelin is installed.
11
11
To get start with HBase, please see [HBase Quickstart](https://hbase.apache.org/book.html#quickstart)
12
12
13
-
> Note: currently only HBase 1.0.x releases are supported.
13
+
## HBase release supported
14
+
By default, Zeppelin is built against HBase 1.0.x releases. To work with HBase 1.1.x releases, use the following build command:
@@ -23,20 +34,39 @@ To get start with HBase, please see [HBase Quickstart](https://hbase.apache.org/
23
34
<tr>
24
35
<td>hbase.home</td>
25
36
<td>/usr/lib/hbase</td>
26
-
<td>Installation directory of Hbase</td>
37
+
<td>Installation directory of HBase, defaults to HBASE_HOME in environment</td>
27
38
</tr>
28
39
<tr>
29
40
<td>hbase.ruby.sources</td>
30
41
<td>lib/ruby</td>
31
42
<td>Path to Ruby scripts relative to 'hbase.home'</td>
32
43
</tr>
33
44
<tr>
34
-
<td>hbase.test.mode</td>
45
+
<td>zeppelin.hbase.test.mode</td>
35
46
<td>false</td>
36
47
<td>Disable checks for unit and manual tests</td>
37
48
</tr>
38
49
</table>
39
50
51
+
If you want to connect to HBase running on a cluster, you'll need to follow the next step.
52
+
53
+
### Export HBASE_HOME
54
+
In **conf/zeppelin-env.sh**, export `HBASE_HOME` environment variable with your HBase installation path. This ensures `hbase-site.xml` can be loaded.
Copy file name to clipboardExpand all lines: hbase/src/main/java/org/apache/zeppelin/hbase/HbaseInterpreter.java
+32-11Lines changed: 32 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -37,21 +37,20 @@
37
37
importjava.util.Properties;
38
38
39
39
/**
40
-
* Support for Hbase Shell. All the commands documented here
40
+
* Support for HBase Shell. All the commands documented here
41
41
* http://hbase.apache.org/book.html#shell is supported.
42
42
*
43
43
* Requirements:
44
-
* Hbase Shell should be installed on the same machine. To be more specific, the following dir.
44
+
* HBase Shell should be installed on the same machine. To be more specific, the following dir.
45
45
* should be available: https://github.com/apache/hbase/tree/master/hbase-shell/src/main/ruby
46
-
* Hbase Shell should be able to connect to the Hbase cluster from terminal. This makes sure
46
+
* HBase Shell should be able to connect to the HBase cluster from terminal. This makes sure
47
47
* that the client is configured properly.
48
48
*
49
49
* The interpreter takes 3 config parameters:
50
-
* hbase.home: Root dir. where hbase is installed. Default is /usr/lib/hbase/
50
+
* hbase.home: Root directory where HBase is installed. Default is /usr/lib/hbase/
51
51
* hbase.ruby.sources: Dir where shell ruby code is installed.
52
52
* Path is relative to hbase.home. Default: lib/ruby
53
-
* hbase.irb.load: (Testing only) Default is true.
54
-
* Whether to load irb in the interpreter.
53
+
* zeppelin.hbase.test.mode: (Testing only) Disable checks for unit and manual tests. Default: false
0 commit comments