This section applies to MRS 3.2.0 or later.
Add an IoTDB JDBC data source on HSConsole of a cluster in security mode.
Parameter |
Description |
Example Value |
---|---|---|
Driver |
The default value is iotdb. |
iotdb |
JDBC URL |
JDBC URL for connecting to IoTDB. Format: jdbc:iotdb://Service IP address 1 of IoTDBServer:Port number,Service IP address 2 of IoTDBServer:Port number |
jdbc:iotdb://10.10.10.11:22260,10.10.10.12:22260 |
Username |
IoTDB username for connecting to the IoTDB data source |
NOTE:
If the cluster where IoTDB resides is in non-security mode, set this parameter to the default IoTDB user root. |
Password |
Password of the IoTDB username for connecting to the IoTDB data source |
NOTE:
If the cluster where the IoTDB service is installed is in non-security mode, obtain the password of user root from the administrator of this cluster. |
Enable SSL |
Whether SSL is enabled for the IoTDB service. SSL is enabled by default in a security cluster. |
Yes |
truststore File |
After SSL is enabled for IoTDB, upload the truststore.jks file. |
- |
Log in to FusionInsight Manager, choose Cluster > Services > IoTDB. On the page that is displayed, click the Instance tab. On this tab page, check Service IP Address of IoTDBServer.
Log in to FusionInsight Manager, choose Cluster > Services > IoTDB. On the page that is displayed, click the Configurations tab. On this tab page, search for and check the value of IOTDB_SERVER_RPC_PORT. The default value is 22260.
cd /opt/client
source bigdata_env
kinit User performing HetuEngine operations (If the cluster is in normal mode, skip this step.)
hetu-cli --catalog Data source name --schema Database name
For example, run the following command:
hetu-cli --catalog iotdb_1 --schema root.ln
show tables;
IoTDB Data Type |
HetuEngine Data Type |
---|---|
BOOLEAN |
BOOLEAN |
INT32 |
BIGINT |
INT64 |
BIGINT |
FLOAT |
DOUBLE |
DOUBLE |
DOUBLE |
TEXT |
VARCHAR |