Skip to main content

IoTDB-Collector User's Manual

About 1 min

IoTDB-Collector User's Manual


  • JDK >= 11


  1. Download the IoTDB-Collector zip package and extract the zip package to get the IoTDB-Collector folder.
  2. Modify the IoTDB configuration information in the file in the IoTDB-Collector/conf folder.
dbIp =
dbPort = 6667
dbUser = root
dbPasswd = root
  1. In the IoTDB-Collector folder use . /bin/ to start IoTDB-Collector.

Usage Example

Connect to OPC UA services and collect data

  1. Modify the opcua-points.json file under IoTDB-Collector/conf/opcua to configure the addresses of the points to be collected
  "protocol": "opcua",
  "point_refs": [
      "name": "DEC21HV415_Mon",
      "address": "ns=1;s=t|HV21415/V.Monitor",
      "data_type": "boolean"
  1. Modify the opcua-tasks.json file under IoTDB-Collector/conf/opcua to configure the name and collection frequency of the IoTDB inbound database corresponding to the point location.
  1. Call the interface to start the acquisition program ( endpointUrl Configure the OPC UA connection address )
curl --request PUT '' \
--header 'Authorization: Basic dG9tOjMyMTEz' \
--header 'Content-Type: application/json' \
--data '{
	"deviceId": "opcua",
	"deviceOwner": "opcua",
	"protocolName": "opcua",
	"deviceProperties": {
		"endpointUrl": "opc.tcp://",
		"authWay": "0",
		"username": "",
		"password": ""
  1. To see if IoTDB has data written to it
  1. Stop OPC UA data collection
curl --request DELETE '' \
--header 'Authorization: Basic dG9tOjMyMTEz' \

Copyright © 2023 The Apache Software Foundation.
Apache and the Apache feather logo are trademarks of The Apache Software Foundation

Have a question? Connect with us on QQ, WeChat, or Slack. Join the community now.

We use Google Analytics to collect anonymous, aggregated usage information.