DTStack / DTStack/chunjun

chunjun配置指标统计输出至mysql

Open
#1,176 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/DTStack/chunjun/issues) and found no similar issues.

### What happened

1、根据chunjun配置mysql 但是本地或者标准模式下 都无法找到mysqlreport

### What you expected to happen

1、json中配置
{
"job": {
"content": [
{
"reader": {
"parameter": {
"password": "123456",
"dataSourceId": 8,
"column": [
{
"precision": 4,
"name": "id",
"columnDisplaySize": 4,
"type": "INT"
},
{
"precision": 255,
"name": "name",
"columnDisplaySize": 255,
"type": "VARCHAR"
},
{
"precision": 4,
"name": "age",
"columnDisplaySize": 4,
"type": "TINYINT"
},
{
"precision": 255,
"name": "phone",
"columnDisplaySize": 255,
"type": "VARCHAR"
}
],
"connection": [
{
"jdbcUrl": [
"jdbc:mysql://172.18.8.77:3306/zk_test"
],
"table": [
"one_copy1"
]
}
],
"increColumn":"id",
"splitPk": "id",
"username": "root"
},
"name": "mysqlreader"
},
"writer": {
"parameter": {
"password": "123456",
"dataSourceId": 8,
"column": [
{
"precision": 4,
"name": "id",
"columnDisplaySize": 4,
"type": "INT"
},
{
"precision": 255,
"name": "name",
"columnDisplaySize": 255,
"type": "VARCHAR"
},
{
"precision": 4,
"name": "age",
"columnDisplaySize": 4,
"type": "TINYINT"
},
{
"precision": 255,
"name": "phone",
"columnDisplaySize": 255,
"type": "VARCHAR"
}
],
"connection": [
{
"jdbcUrl": "jdbc:mysql://172.18.8.77:3306/zk_test",
"table": [
"one_copy1"
]
}
],
"writeMode": "insert",
"username": "root"
},
"name": "mysqlwriter"
}
}
],
"setting": {
"log": {
"isLogger": false
},
"errorLimit" : {
"record": 100,
"percentage": 100
},
"metricPluginConf" : {
"pluginName": "promethus",
"pluginProp": {
"jdbcUrl":"jdbc:mysql://172.18.8.77:3306/zk_test",
"database":"zk_test",
"table":"test001",
"username":"root",
"password":"123456",
"properties":{
}
}
},
"speed": {
"bytes": 0,
"channel": 1
}
}
}
}

### How to reproduce

{
"job": {
"content": [
{
"reader": {
"parameter": {
"password": "123456",
"dataSourceId": 8,
"column": [
{
"precision": 4,
"name": "id",
"columnDisplaySize": 4,
"type": "INT"
},
{
"precision": 255,
"name": "name",
"columnDisplaySize": 255,
"type": "VARCHAR"
},
{
"precision": 4,
"name": "age",
"columnDisplaySize": 4,
"type": "TINYINT"
},
{
"precision": 255,
"name": "phone",
"columnDisplaySize": 255,
"type": "VARCHAR"
}
],
"connection": [
{
"jdbcUrl": [
"jdbc:mysql://172.18.8.77:3306/zk_test"
],
"table": [
"one_copy1"
]
}
],
"increColumn":"id",
"splitPk": "id",
"username": "root"
},
"name": "mysqlreader"
},
"writer": {
"parameter": {
"password": "123456",
"dataSourceId": 8,
"column": [
{
"precision": 4,
"name": "id",
"columnDisplaySize": 4,
"type": "INT"
},
{
"precision": 255,
"name": "name",
"columnDisplaySize": 255,
"type": "VARCHAR"
},
{
"precision": 4,
"name": "age",
"columnDisplaySize": 4,
"type": "TINYINT"
},
{
"precision": 255,
"name": "phone",
"columnDisplaySize": 255,
"type": "VARCHAR"
}
],
"connection": [
{
"jdbcUrl": "jdbc:mysql://172.18.8.77:3306/zk_test",
"table": [
"one_copy1"
]
}
],
"writeMode": "insert",
"username": "root"
},
"name": "mysqlwriter"
}
}
],
"setting": {
"log": {
"isLogger": false
},
"errorLimit" : {
"record": 100,
"percentage": 100
},
"metricPluginConf" : {
"pluginName": "promethus",
"pluginProp": {
"jdbcUrl":"jdbc:mysql://172.18.8.77:3306/zk_test",
"database":"zk_test",
"table":"test001",
"username":"root",
"password":"123456",
"properties":{
}
}
},
"speed": {
"bytes": 0,
"channel": 1
}
}
}
}

### Anything else

_No response_

### Version

master

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.