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 configuration configurations accordingly in the <DAS_HOME>/repository/conf/datasources/
analytics-datasources.xml
file as followsshown 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.master<.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>localhost:60000<<value>org.apache.hadoop.fs.LocalFileSystem</value> </property> </configuration> </definition> </datasource> |
...