14.3.2 Local Deployment
This document describes how to install TDengine IDMP on your local machine.
14.3.2.1 Prerequisites
- Ensure that your local machine meets the minimum requirements for TDengine IDMP. For details, see Planning Your Deployment.
- Install TDengine TSDB-Enterprise version 3.3.7.0 or higher. For instructions, see Deploy TDengine TSDB-Enterprise.
- Install Java 21 or later.
- Install glibc 2.25 or later.
- On Debian and Ubuntu systems, install the
python3-venvpackage.
14.3.2.2 Install TDengine IDMP
Select your operating system to display the appropriate installation procedure.
Your machine must be connected to the internet when you install TDengine IDMP. Dependencies are downloaded and installed during the TDengine IDMP installation process.
-
In a web browser, access the TDengine Download Center.
-
Select the installation package for your operating system and download it.
-
Follow the instructions in the Download Center to install TDengine IDMP.
Do not start TDengine IDMP until you have configured the TDengine TSDB-Enterprise connection as described in the following section.
14.3.2.3 Configure TSDB Connection
-
Configure the TDengine TSDB-Enterprise connection in TDengine IDMP:
-
Open the TDengine IDMP configuration file with a text editor. The default location is:
- Linux/macOS:
/usr/local/taos/idmp/config/application.yml - Windows:
C:\TDengine\idmp\config\application.yml
- Linux/macOS:
-
Under the
tda.default-connectionsection, set the TDengine TSDB-Enterprise connection details as shown in the following example:tda:
default-connection:
enable: true
auth-type: UserPassword
url: http://<hostname>:<port>
username: <username>
password: <password>-
url: Specify the URL and port number of your taosAdapter instance.
-
username: Enter a TDengine TSDB-Enterprise user.
-
password: Enter the password for the TDengine TSDB-Enterprise user.
-
Complete Configuration Reference- For complete IDMP configuration file documentation, please refer to: TDengine IDMP Configuration File Reference.
-
To configure the base path for the gateway reverse proxy, you first need to explicitly specify this base path by setting the
TDA_REST_BASE_PATHenvironment variable. Meanwhile, the gateway side needs to complete two configurations: 1. Configure the routing forwarding rule pointing to http://<target address>/idmp_config; 2. Configure the path rewriting rule to ensure that the aforementioned base path contained in the request URL is removed before forwarding the request to the backend service.
-
-
(Optional) Run the following command to test the connection to TDengine TSDB-Enterprise:
curl --request POST \
--user <username>:<password> \
--url http://<hostname>:<port>/rest/sql \
--data 'show databases;'If the connection is successful, the list of databases in TDengine TSDB-Enterprise will be displayed.
14.3.2.4 Start TDengine IDMP
- Linux
- macOS
- Windows
Run the following command to start TDengine IDMP:
sudo svc-tdengine-idmp start
You can also use other svc-tdengine-idmp commands to check the service status, stop the service, and perform other operations:
sudo svc-tdengine-idmp status # Check service status
sudo svc-tdengine-idmp stop # Stop service
You can manually manage the TDengine IDMP service using systemctl. For example:
sudo systemctl start tdengine-idmp
sudo systemctl stop tdengine-idmp
sudo systemctl status tdengine-idmp
sudo systemctl restart tdengine-idmp
Root permissions are required to run these commands.
Run the following command to start TDengine IDMP:
sudo svc-tdengine-idmp start
You can also use other svc-tdengine-idmp commands to check the service status, stop the service, and perform other operations:
sudo svc-tdengine-idmp status # Check service status
sudo svc-tdengine-idmp stop # Stop service
You can manually manage the TDengine IDMP service using launchctl. For example:
sudo launchctl start com.taosdata.tdengine-idmp
sudo launchctl stop com.taosdata.tdengine-idmp
sudo launchctl list | grep tdengine-idmp
sudo launchctl print system/com.taosdata.tdengine-idmp
- Root privileges are required to run these commands.
- The command
sudo launchctl list | grep tdengine-idmpreturns the PID of the TDengine IDMP Java process in the first column. If the command returns-, the TDengine IDMP service is not running. - If the service is not working properly, check the system log (
launchd.log) or the logs located in the/usr/local/taos/idmp/logsdirectory for more information.
Run the following command to start TDengine IDMP:
C:\TDengine\idmp\bin\start-tdengine-idmp.bat
You can also manage TDengine IDMP services through Windows Service Manager:
- Press
Win + R, typeservices.msc, and press Enter to open Services - Find the following services:
tdengine-idmptdengine-idmp-h2tdengine-idmp-chat
- Right-click on each service to Start, Stop, or Restart
To stop TDengine IDMP, run:
C:\TDengine\idmp\bin\stop-tdengine-idmp.bat
- Administrator privileges are required to run these commands.
- If the services are not working properly, check the logs located in the
C:\TDengine\idmp\logsdirectory for more information.
Once TDengine IDMP starts successfully, it includes the following three services:
tdengine-idmp-h2: Stores metadata and configuration for TDengine IDMP.tdengine-idmp-chat: Handles AI-related tasks and analytics.tdengine-idmp: The core service responsible for managing and providing data access.
14.3.2.5 Uninstall TDengine IDMP
- Linux-Generic
- Linux-Red Hat
- Linux-Ubuntu
- macOS
- Windows
Run the following command to uninstall TDengine IDMP:
rmidmp -e [yes | no]
To retain data, log, and configuration files, specify no. To delete these files, specify yes.
Run the following command to uninstall TDengine IDMP:
rpm -e tdengine-idmp
Run the following command to uninstall TDengine IDMP:
dpkg -r tdengine-idmp
Run the following command to uninstall TDengine IDMP:
rmidmp -e [yes | no]
To retain data, log, and configuration files, specify no. To delete these files, specify yes.
Double-click C:\TDengine\idmp\unins000.exe and follow the uninstallation wizard to complete the process.
Alternatively, you can uninstall TDengine IDMP through Control Panel → Programs → Programs and Features:
- Find TDengine IDMP in the list
- Right-click and select Uninstall
- Follow the uninstallation wizard to complete the process
14.3.2.6 Upgrade TDengine IDMP
To upgrade TDengine IDMP, you download the installation package for the new version of TDengine IDMP, stop all TDengine IDMP services, install the new version, and start TDengine IDMP services again. It is not necessary to uninstall the previous version before upgrading, and all existing configuration, logs, and data are retained after upgrade.
- Linux/macOS
- Windows
-
Back up the contents of the following directories:
data/idmp: User data directoryidmp/venv: Python virtual environmentidmp/config: Configuration directorylogs: Log directory
-
Stop all TDengine IDMP services:
sudo svc-tdengine-idmp stop -
Install the new version of TDengine IDMP:
tar -zxvf tdengine-idmp-enterprise--linux-x64.tar.gz
cd tdengine-idmp-enterprise-
sudo ./install.sh -
Start TDengine IDMP services:
sudo svc-tdengine-idmp start -
Log in to TDengine IDMP and verify that the desired version has been installed.
-
Back up the contents of the following directories:
data\idmp: User data directoryidmp\venv: Python virtual environmentidmp\config: Configuration directorylogs: Log directory
-
Run the following file as an administrator to stop all TDengine IDMP services:
C:\TDengine\idmp\bin\stop-tdengine-idmp.bat -
Run the installation package to install the new version of TDengine IDMP.
-
Run the following file as an administrator to start all TDengine IDMP services:
C:\TDengine\idmp\bin\start-tdengine-idmp.bat -
Log in to TDengine IDMP and verify that the desired version has been installed.
