产品定价 立即试用
Trendz Analytics
入门 文档 指南
如何激活Trendz
目录

Trendz Analytics v1.14.x CentOS 升级说明

升级Trendz Analytics前的准备

停止Trendz Analytics 检查Trendz与数据库服务是否已停止。

1
sudo systemctl stop trendz
1
sudo systemctl status trendz

备份数据库

升级前请备份数据库。

检查PostgreSQL状态。备份时无需停止PostgreSQL。

1
sudo systemctl status postgresql

请确保有足够空间存放数据库备份

检查数据库大小

1
sudo -u postgres psql -c "SELECT pg_size_pretty( pg_database_size('trendz') );"

检查可用空间

1
df -h /

若有足够可用空间,请执行备份。

1
sudo -Hiu postgres pg_dump trendz > trendz.sql.bak

确认备份文件已生成。

Upgrading Trendz Analytics to 1.14.0

文档信息图标

NOTE:
After upgrading it is required to update Trendz widget bundle in ThingsBoard. You can find detailed instructions how to do that via Trendz UI in Trendz Widget Bundle upgrade article.
Prepare for upgrading Trendz Analytics.

文档警告图标

Important note before upgrading to Trendz 1.14.0

From version 1.14.0, python calculation fields and prediction models could be utilized only using Trendz Python Executor service which can be used only inside the docker.

If you are already using Trendz Python Executor via Docker, it’s necessary to update it to version 1.14.0 before Trendz update. You can find detailed instructions on how to do that here.

If you were not using Python Executor before, you need to install it via Docker. You can find detailed instructions on how to do that here.

Trendz Analytics package download

1
wget https://dist.thingsboard.io/trendz-1.14.0.rpm

Trendz Analytics service upgrade

  • Install Trendz Analytics service
1
sudo rpm -Uvh trendz-1.14.0.rpm

NOTE: Package installer will ask you to merge your Trendz configuration. It is preferred to use merge option to make sure that all your previous parameters will not be overwritten.

Execute regular upgrade script:

1
sudo /usr/share/trendz/bin/install/upgrade.sh --fromVersion=1.13.2

Start the service

1
sudo service trendz start