HBASE-18787 Fix the "dependencies connecting to an HBase cluster"
This commit is contained in:
parent
21a61ad597
commit
bb9f01c1e4
|
@ -547,19 +547,14 @@ Usually this ensemble location is kept out in the _hbase-site.xml_ and is picked
|
||||||
|
|
||||||
If you are configuring an IDE to run an HBase client, you should include the _conf/_ directory on your classpath so _hbase-site.xml_ settings can be found (or add _src/test/resources_ to pick up the hbase-site.xml used by tests).
|
If you are configuring an IDE to run an HBase client, you should include the _conf/_ directory on your classpath so _hbase-site.xml_ settings can be found (or add _src/test/resources_ to pick up the hbase-site.xml used by tests).
|
||||||
|
|
||||||
Minimally, an HBase client needs several libraries in its `CLASSPATH` when connecting to a cluster, including:
|
Minimally, an HBase client needs hbase-client module in its dependencies when connecting to a cluster:
|
||||||
[source]
|
[source,xml]
|
||||||
----
|
----
|
||||||
|
<dependency>
|
||||||
commons-configuration (commons-configuration-1.6.jar)
|
<groupId>org.apache.hbase</groupId>
|
||||||
commons-lang3 (commons-lang3-3.6.jar)
|
<artifactId>hbase-client</artifactId>
|
||||||
commons-logging (commons-logging-1.1.1.jar)
|
<version>1.2.4</version>
|
||||||
hadoop-core (hadoop-core-1.0.0.jar)
|
</dependency>
|
||||||
hbase (hbase-0.92.0.jar)
|
|
||||||
log4j (log4j-1.2.16.jar)
|
|
||||||
slf4j-api (slf4j-api-1.5.8.jar)
|
|
||||||
slf4j-log4j (slf4j-log4j12-1.5.8.jar)
|
|
||||||
zookeeper (zookeeper-3.4.2.jar)
|
|
||||||
----
|
----
|
||||||
|
|
||||||
A basic example _hbase-site.xml_ for client only may look as follows:
|
A basic example _hbase-site.xml_ for client only may look as follows:
|
||||||
|
|
Loading…
Reference in New Issue