This topic describes how to add a Phoenix data source.
Scenarios
ApsaraDB for HBase clusters that run Phoenix4.x or Phoenix 5.x
User-created HBase clusters
E-MapReduce HBase clusters
Procedure
Log on to the Lindorm Tunnel Service (LTS) web UI. In the left-side navigation pane, choose Data Source Manage > Add Data Source.
On the Add data source page, set the following parameters.
Parameter
Description
Name
You can specify a custom name that contains only letters and digits.
Data Source Type
Select Phoenix.
Parameters
{ queryserver:"http://xxxxx:8765", clusterKey:"xxxzkhost1.xxxzkhost2.xxxzkhost3:2181:/xxxhbase",hbaseDir:"/xxxhbase",hdfsUrl:"n1:8020","xxxnn2:8020"}
queryserver: the username
clusterKey: the ZooKeeper node, the port number, and the root node where your HBase cluster resides
hbaseDir: the root path of your HBase cluster on the Hadoop Distributed File System (HDFS)
hdfsUrl: the name and the port number of the NameNode
Click Add.