HBase datasource is used to set up a connection to a remote HBase insance. In WSO2 DAS, you can create a HBase datasource by specifying the datasource configurations accordingly in the <DAS_HOME>/repository/conf/datasources/
analytics-datasources.xml
file as shown in the example below.
Code Block |
---|
|
<datasource>
<name>WSO2_ANALYTICS_RS_DB_HBASE</name>
<description>The datasource used for analytics file system</description>
<jndiConfig>
<name>jdbc/WSO2HBaseDB</name>
</jndiConfig>
<definition type="HBASE">
<configuration>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>fs.hdfs.impl</name>
<value>org.apache.hadoop.hdfs.DistributedFileSystem</value>
</property>
<property>
<name>fs.file.impl</name>
<value>org.apache.hadoop.fs.LocalFileSystem</value>
</property>
</configuration>
</definition>
</datasource> |
Info |
---|
For information on the above properties, and other properties that you can specify in this datasource configuration, go to Apache HBase Reference Guide. |