Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
docker-iot-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
docker-iot-v3
Commits
1a0ccad3
Commit
1a0ccad3
authored
Sep 23, 2022
by
chonghaohao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d7c1c946
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
8 deletions
+36
-8
active-sync.sh
active-sync.sh
+28
-0
docker-compose.hybrid.yml
docker-compose.hybrid.yml
+2
-2
docker-compose.postgres.yml
docker-compose.postgres.yml
+2
-2
tb-node.hybrid.env
tb-node.hybrid.env
+2
-2
tb-node.postgres.env
tb-node.postgres.env
+2
-2
No files found.
active-sync.sh
0 → 100644
View file @
1a0ccad3
# 激活边端
curl
--location
--request
POST
'http://10.10.39.251:8083/connectors'
\
--header
'Content-Type: application/json'
\
--data-raw
'{
"name": "inventory-connector-v3",
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "5",
"database.hostname": "postgres",
"database.port": "5432",
"database.user": "postgres",
"database.password": "huansi.net@v3",
"database.dbname" : "hsiotdb",
"database.server.name": "iot-v3",
"table.whitelist": "public.device,public.ts_kv_latest",
"plugin.name": "pgoutput",
"decimal.handling.mode": "string",
"slot.name" : "slot1007"
}
}'
# 查询
curl
-X
GET
'http://10.10.10.56:8083/connectors/inventory-connector-xinxiang'
curl
--location
--request
GET
'http://10.10.10.56:8083/connectors/inventory-connector-xinxiang/status'
# 删除
curl
--location
--request
DETELE
'http://10.10.10.56:8083/connectors/inventory-connector-xinxiang'
curl
--location
--request
DELETE
'http://10.10.10.56:8083/connectors/inventory-connector-xinxiang'
\ No newline at end of file
docker-compose.hybrid.yml
View file @
1a0ccad3
...
...
@@ -23,8 +23,8 @@ services:
ports
:
-
"
5432"
environment
:
POSTGRES_DB
:
thingsboard
POSTGRES_PASSWORD
:
postgres
POSTGRES_DB
:
hsiotdb
POSTGRES_PASSWORD
:
huansi.net@v3
volumes
:
-
./tb-node/postgres:/var/lib/postgresql/data
cassandra
:
...
...
docker-compose.postgres.yml
View file @
1a0ccad3
...
...
@@ -23,8 +23,8 @@ services:
ports
:
-
"
5432"
environment
:
POSTGRES_DB
:
thingsboard
POSTGRES_PASSWORD
:
postgres
POSTGRES_DB
:
hsiotdb
POSTGRES_PASSWORD
:
huansi.net@v3
volumes
:
-
./tb-node/postgres:/var/lib/postgresql/data
tb-core1
:
...
...
tb-node.hybrid.env
View file @
1a0ccad3
...
...
@@ -3,6 +3,6 @@
DATABASE_TS_TYPE=cassandra
CASSANDRA_URL=cassandra:9042
SPRING_DRIVER_CLASS_NAME=org.postgresql.Driver
SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/
thingsboard
SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/
hsiotdb
SPRING_DATASOURCE_USERNAME=postgres
SPRING_DATASOURCE_PASSWORD=
postgres
SPRING_DATASOURCE_PASSWORD=
huansi.net@v3
tb-node.postgres.env
View file @
1a0ccad3
...
...
@@ -2,6 +2,6 @@
DATABASE_TS_TYPE=sql
SPRING_DRIVER_CLASS_NAME=org.postgresql.Driver
SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/
thingsboard
SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/
hsiotdb
SPRING_DATASOURCE_USERNAME=postgres
SPRING_DATASOURCE_PASSWORD=
postgres
SPRING_DATASOURCE_PASSWORD=
huansi.net@v3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment