datax 执行json 脚本报 oceanbase 连接错误,请给看看jdbc的串是否正确

【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】
【问题描述】清晰明确描述问题
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):

2024-03-11 11:07:55.114 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“mysqlreader”,
“parameter”:{
“column”:[
"
],
“connection”:[
{
“jdbcUrl”:[
“jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&useSSL=false”
],
“table”:[
“student”
]
}
],
“password”:"********",
“username”:“datax”
}
},
“writer”:{
“name”:“oceanbasev10writer”,
“parameter”:{
“batchSize”:1000,
“column”:[
"

],
“connection”:[
{
“jdbcUrl”:"||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:mysql://172.20.16.16:2881/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true",
“table”:[
“student”
]
}
],
“memstoreThreshold”:“0.9”,
“obWriteMode”:“replace”,
“password”:"********",
“preSql”:[
“truncate table student”
],
“username”:“datax”,
“writerThreadCount”:10
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.1,
“record”:0
},
“speed”:{
“channel”:4
}
}
}

2024-03-11 11:07:55.151 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 11:07:55.155 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 11:07:55.155 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 11:07:55.157 [main] INFO JobContainer - Set jobId = 0
2024-03-11 11:07:55.980 [job-0] INFO OriginalConfPretreatmentUtil - Available jdbcUrl:jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&useSSL=false&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 11:07:55.982 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置存在一定的风险. 因为您未配置读取数据库表的列,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 11:07:56.038 [job-0] INFO DBUtil - this is ob1_0 jdbc url.
2024-03-11 11:07:56.038 [job-0] INFO DBUtil - this is ob1_0 jdbc url. user=obdemo:sw_tenant:datax :url=jdbc:oceanbase://172.20.16.16:2881/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true
2024-03-11 11:08:11.388 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.RdbmsException.asConnException(RdbmsException.java:36) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:394) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:384) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.access$000(DBUtil.java:22) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:322) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:319) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.call(RetryUtil.java:164) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.doRetry(RetryUtil.java:111) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil.executeWithRetry(RetryUtil.java:30) [datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:319) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:303) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.util.DbUtils.fetchSingleValueWithRetry(DbUtils.java:50) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.checkCompatibleMode(OceanBaseV10Writer.java:184) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.init(OceanBaseV10Writer.java:62) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.initJobWriter(JobContainer.java:704) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:304) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na]
2024-03-11 11:08:12.389 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第1次重试.本次重试计划等待[1000]ms,实际等待[1000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]
2024-03-11 11:08:12.390 [job-0] INFO DBUtil - this is ob1_0 jdbc url.
2024-03-11 11:08:12.390 [job-0] INFO DBUtil - this is ob1_0 jdbc url. user=obdemo:sw_tenant:datax :url=jdbc:oceanbase://172.20.16.16:2881/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true
2024-03-11 11:08:29.405 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第2次重试.本次重试计划等待[2000]ms,实际等待[2000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]
2024-03-11 11:08:29.406 [job-0] INFO DBUtil - this is ob1_0 jdbc url.
2024-03-11 11:08:29.406 [job-0] INFO DBUtil - this is ob1_0 jdbc url. user=obdemo:sw_tenant:datax :url=jdbc:oceanbase://172.20.16.16:2881/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true
2024-03-11 11:08:48.419 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第3次重试.本次重试计划等待[4000]ms,实际等待[4001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]
2024-03-11 11:08:48.419 [job-0] INFO DBUtil - this is ob1_0 jdbc url.
2024-03-11 11:08:48.419 [job-0] INFO DBUtil - this is ob1_0 jdbc url. user=obdemo:sw_tenant:datax :url=jdbc:oceanbase://172.20.16.16:2881/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true
2024-03-11 11:09:11.439 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第4次重试.本次重试计划等待[8000]ms,实际等待[8000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]
2024-03-11 11:09:11.439 [job-0] INFO DBUtil - this is ob1_0 jdbc url.
2024-03-11 11:09:11.439 [job-0] INFO DBUtil - this is ob1_0 jdbc url. user=obdemo:sw_tenant:datax :url=jdbc:oceanbase://172.20.16.16:2881/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true
^C[Error] DataX receive unexpected signal 2, starts to suicide.
2024-03-11 11:09:14
Full thread dump OpenJDK 64-Bit Server VM (25.282-b08 mixed mode):

“SIGINT handler” #11 daemon prio=9 os_prio=0 tid=0x00007ff814001000 nid=0x9302 runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

“Abandoned connection cleanup thread” #10 daemon prio=5 os_prio=0 tid=0x00007ff838784000 nid=0x9300 in Object.wait() [0x00007ff80afdc000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
- locked <0x00000000c2a42e08> (a java.lang.ref.ReferenceQueue$Lock)
at com.alipay.oceanbase.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)

“Abandoned connection cleanup thread” #8 daemon prio=5 os_prio=0 tid=0x00007ff838566000 nid=0x92ff in Object.wait() [0x00007ff80b51b000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
- locked <0x00000000c1af2d80> (a java.lang.ref.ReferenceQueue$Lock)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)

“Service Thread” #7 daemon prio=9 os_prio=0 tid=0x00007ff83811f800 nid=0x92fd runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

“C1 CompilerThread1” #6 daemon prio=9 os_prio=0 tid=0x00007ff83811c800 nid=0x92fc waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

“C2 CompilerThread0” #5 daemon prio=9 os_prio=0 tid=0x00007ff83811b000 nid=0x92fb waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

“Signal Dispatcher” #4 daemon prio=9 os_prio=0 tid=0x00007ff83810c800 nid=0x92fa waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE

“Finalizer” #3 daemon prio=8 os_prio=0 tid=0x00007ff8380dc800 nid=0x92f9 in Object.wait() [0x00007ff828efd000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000c0008ee8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
- locked <0x00000000c0008ee8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:165)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:216)

“Reference Handler” #2 daemon prio=10 os_prio=0 tid=0x00007ff8380d8000 nid=0x92f8 in Object.wait() [0x00007ff828ffe000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000c0006c00> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
- locked <0x00000000c0006c00> (a java.lang.ref.Reference$Lock)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

“job-0” #1 prio=5 os_prio=0 tid=0x00007ff83804e000 nid=0x92f6 runnable [0x00007ff84101c000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
- locked <0x00000000c322f7f0> (a java.net.SocksSocketImpl)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at com.alipay.oceanbase.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:221)
at com.alipay.oceanbase.jdbc.MysqlIO.(MysqlIO.java:394)
at com.alipay.oceanbase.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2587)
at com.alipay.oceanbase.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2621)
at com.alipay.oceanbase.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2412)
- locked <0x00000000c3223860> (a com.alipay.oceanbase.jdbc.JDBC4Connection)
at com.alipay.oceanbase.jdbc.ConnectionImpl.(ConnectionImpl.java:961)
at com.alipay.oceanbase.jdbc.JDBC4Connection.(JDBC4Connection.java:39)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.alipay.oceanbase.jdbc.Util.handleNewInstance(Util.java:439)
at com.alipay.oceanbase.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:460)
at com.alipay.oceanbase.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:340)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:392)
- locked <0x00000000c2a08fa8> (a java.lang.Class for com.alibaba.datax.plugin.rdbms.util.DBUtil)
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:384)
- locked <0x00000000c2a08fa8> (a java.lang.Class for com.alibaba.datax.plugin.rdbms.util.DBUtil)
at com.alibaba.datax.plugin.rdbms.util.DBUtil.access$000(DBUtil.java:22)
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:322)
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:319)
at com.alibaba.datax.common.util.RetryUtil$Retry.call(RetryUtil.java:164)
at com.alibaba.datax.common.util.RetryUtil$Retry.doRetry(RetryUtil.java:111)
at com.alibaba.datax.common.util.RetryUtil.executeWithRetry(RetryUtil.java:30)
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:319)
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:303)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.util.DbUtils.fetchSingleValueWithRetry(DbUtils.java:50)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.checkCompatibleMode(OceanBaseV10Writer.java:184)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.init(OceanBaseV10Writer.java:62)
at com.alibaba.datax.core.job.JobContainer.initJobWriter(JobContainer.java:704)
at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:304)
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113)
at com.alibaba.datax.core.Engine.start(Engine.java:92)
at com.alibaba.datax.core.Engine.entry(Engine.java:171)
at com.alibaba.datax.core.Engine.main(Engine.java:204)

“VM Thread” os_prio=0 tid=0x00007ff8380ce000 nid=0x92f7 runnable

“VM Periodic Task Thread” os_prio=0 tid=0x00007ff838122800 nid=0x92fe waiting on condition

JNI global references: 335

Heap
def new generation total 314560K, used 61526K [0x00000000c0000000, 0x00000000d5550000, 0x00000000d5550000)
eden space 279616K, 22% used [0x00000000c0000000, 0x00000000c3c15a08, 0x00000000d1110000)
from space 34944K, 0% used [0x00000000d1110000, 0x00000000d1110000, 0x00000000d3330000)
to space 34944K, 0% used [0x00000000d3330000, 0x00000000d3330000, 0x00000000d5550000)
tenured generation total 699072K, used 0K [0x00000000d5550000, 0x0000000100000000, 0x0000000100000000)
the space 699072K, 0% used [0x00000000d5550000, 0x00000000d5550000, 0x00000000d5550200, 0x0000000100000000)
Metaspace used 17732K, capacity 18036K, committed 18176K, reserved 1064960K
class space used 1853K, capacity 1942K, committed 2048K, reserved 1048576K

【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)

那个大神 给看看 里面json 脚本的oceanbase 串怎么填写,oceanbase 集群obdemo,租户sw_tenant

“jdbcUrl”: “jdbc:oceanbase://127.0.0.1:2883/tpcc?”
按这个示例试下

https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000507578

推荐一个 DataX Web 工具:+ GitHub - WeiYe-Jing/datax-web: DataX集成可视化页面,选择数据源即可一键生成数据同步任务,支持RDBMS、Hive、HBase、ClickHouse、MongoDB等数据源,批量创建RDBMS数据同步任务,集成开源调度系统,支持分布式、增量同步数据、实时查看运行日志、监控执行器资源、KILL运行进程、数据源信息加密等。

开源的,可以批量配置,任务管理等。 虽然表很多的时候选择也挺麻烦的,不过比手动写配置文件还是要方便很多。开源的,做的还不错。

2024-03-11 11:47:08.269 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“mysqlreader”,
“parameter”:{
“column”:[
"
],
“connection”:[
{
“jdbcUrl”:[
“jdbc:mysql://127.0.0.1:3306/db11?useUnicode=true&characterEncoding=utf8”
],
“table”:[
“student”
]
}
],
“password”:"********",
“username”:“datax”
}
},
“writer”:{
“name”:“oceanbasev10writer”,
“parameter”:{
“batchSize”:1000,
“column”:[
"

],
“connection”:[
{
“jdbcUrl”:“jdbc:oceanbase://172.20.16.116:2881/db11?”,
“table”:[
“student”
]
}
],
“memstoreThreshold”:“0.9”,
“obWriteMode”:“insert”,
“password”:"********",
“preSql”:[
“truncate table student”
],
“username”:“datax”,
“writerThreadCount”:10
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.1,
“record”:0
},
“speed”:{
“channel”:4
}
}
}

2024-03-11 11:47:08.302 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 11:47:08.307 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 11:47:08.307 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 11:47:08.310 [main] INFO JobContainer - Set jobId = 0
2024-03-11 11:47:08.992 [job-0] INFO OriginalConfPretreatmentUtil - Available jdbcUrl:jdbc:mysql://127.0.0.1:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 11:47:08.993 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置存在一定的风险. 因为您未配置读取数据库表的列,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 11:47:09.383 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.RdbmsException.asConnException(RdbmsException.java:36) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:394) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:384) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.access$000(DBUtil.java:22) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:322) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:319) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.call(RetryUtil.java:164) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.doRetry(RetryUtil.java:111) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil.executeWithRetry(RetryUtil.java:30) [datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:319) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:303) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.util.DbUtils.fetchSingleValueWithRetry(DbUtils.java:50) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.checkCompatibleMode(OceanBaseV10Writer.java:184) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.init(OceanBaseV10Writer.java:62) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.initJobWriter(JobContainer.java:704) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:304) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na]
2024-03-11 11:47:10.385 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第1次重试.本次重试计划等待[1000]ms,实际等待[1000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)]
2024-03-11 11:47:12.392 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第2次重试.本次重试计划等待[2000]ms,实际等待[2001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)]
2024-03-11 11:47:16.400 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第3次重试.本次重试计划等待[4000]ms,实际等待[4001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)]
2024-03-11 11:47:24.407 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第4次重试.本次重试计划等待[8000]ms,实际等待[8000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)]
2024-03-11 11:47:40.415 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第5次重试.本次重试计划等待[16000]ms,实际等待[16000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘datax’@‘xxx.xxx.xxx.xxx’ (using password: YES)]
^C[Error] DataX receive unexpected signal 2, starts to suicide.

改过了还是报错

最早这个格式是对的,就是 2881 改为 2883

“connection”:[
{
“jdbcUrl”:"||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:mysql://172.20.16.16:2883/db11?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true",
“table”:[
“student”
]
}
],

我没有创建proxy 所有应该是直连 2881呀

2024-03-11 13:27:17.778 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“mysqlreader”,
“parameter”:{
“column”:[
"
],
“connection”:[
{
“jdbcUrl”:[
“jdbc:mysql://127.0.0.1:3306/db11?useUnicode=true&characterEncoding=utf8”
],
“table”:[
“student”
]
}
],
“password”:"********",
“username”:“datax”
}
},
“writer”:{
“name”:“oceanbasev10writer”,
“parameter”:{
“batchSize”:1000,
“column”:[
"

],
“connection”:[
{
“jdbcUrl”:"||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?",
“table”:[
“student”
]
}
],
“memstoreThreshold”:“0.9”,
“obWriteMode”:“insert”,
“password”:"********",
“preSql”:[
“truncate table student”
],
“username”:“datax”,
“writerThreadCount”:10
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.1,
“record”:0
},
“speed”:{
“channel”:4
}
}
}

2024-03-11 13:27:17.807 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 13:27:17.812 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 13:27:17.812 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 13:27:17.815 [main] INFO JobContainer - Set jobId = 0
2024-03-11 13:27:18.627 [job-0] INFO OriginalConfPretreatmentUtil - Available jdbcUrl:jdbc:mysql://127.0.0.1:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 13:27:18.628 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置存在一定的风险. 因为您未配置读取数据库表的列,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 13:27:18.691 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.RdbmsException.asConnException(RdbmsException.java:36) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:394) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:384) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.access$000(DBUtil.java:22) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:322) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:319) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.call(RetryUtil.java:164) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.doRetry(RetryUtil.java:111) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil.executeWithRetry(RetryUtil.java:30) [datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:319) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:303) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.util.DbUtils.fetchSingleValueWithRetry(DbUtils.java:50) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.checkCompatibleMode(OceanBaseV10Writer.java:184) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.init(OceanBaseV10Writer.java:62) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.initJobWriter(JobContainer.java:704) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:304) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na]
2024-03-11 13:27:19.692 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第1次重试.本次重试计划等待[1000]ms,实际等待[1001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?]
2024-03-11 13:27:21.693 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第2次重试.本次重试计划等待[2000]ms,实际等待[2000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?]
2024-03-11 13:27:25.695 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第3次重试.本次重试计划等待[4000]ms,实际等待[4000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?]
2024-03-11 13:27:33.696 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第4次重试.本次重试计划等待[8000]ms,实际等待[8001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?]
2024-03-11 13:27:49.697 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第5次重试.本次重试计划等待[16000]ms,实际等待[16000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:java.sql.SQLException: No suitable driver found for ||dsc_ob10_dsc||obdemo:sw_tenant||dsc_ob10_dsc||jdbc:oceanbase://172.20.16.116:2881/db11?]

又改了一下还是不行

这个语法就是连接 OBProxy的。建一个 obproxy 监听端口 2883 试试。

或者 就把 OB(MySQL) 租户当 mysql用,那么就写 mysqlwriter
jdbc:mysql://172.20.16.116:2881/db11…

username: datax@sw_tenant

2024-03-11 14:17:51.082 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“mysqlreader”,
“parameter”:{
“column”:[
"
],
“connection”:[
{
“jdbcUrl”:[
“jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8”
],
“table”:[
“student”
]
}
],
“password”:"********",
“username”:“root”
}
},
“writer”:{
“name”:“oceanbasev10writer”,
“parameter”:{
“batchSize”:1000,
“column”:[
"

],
“connection”:[
{
“jdbcUrl”:“jdbc:oceanbase://172.20.16.116:2883/db11?”,
“table”:[
“student”
]
}
],
“memstoreThreshold”:“0.9”,
“obWriteMode”:“insert”,
“password”:"*********",
“preSql”:[
“truncate table student”
],
“username”:“root”,
“writerThreadCount”:10
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.1,
“record”:0
},
“speed”:{
“channel”:4
}
}
}

2024-03-11 14:17:51.111 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 14:17:51.113 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 14:17:51.114 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 14:17:51.120 [main] INFO JobContainer - Set jobId = 0
2024-03-11 14:17:51.965 [job-0] INFO OriginalConfPretreatmentUtil - Available jdbcUrl:jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 14:17:51.966 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置存在一定的风险. 因为您未配置读取数据库表的列,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 14:17:52.362 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.RdbmsException.asConnException(RdbmsException.java:36) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:394) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:384) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.access$000(DBUtil.java:22) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:322) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:319) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.call(RetryUtil.java:164) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.doRetry(RetryUtil.java:111) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil.executeWithRetry(RetryUtil.java:30) [datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:319) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:303) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.util.DbUtils.fetchSingleValueWithRetry(DbUtils.java:50) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.checkCompatibleMode(OceanBaseV10Writer.java:184) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.init(OceanBaseV10Writer.java:62) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.initJobWriter(JobContainer.java:704) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:304) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na]
2024-03-11 14:17:53.364 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第1次重试.本次重试计划等待[1000]ms,实际等待[1000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:17:55.371 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第2次重试.本次重试计划等待[2000]ms,实际等待[2000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:17:59.378 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第3次重试.本次重试计划等待[4000]ms,实际等待[4001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:18:07.384 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第4次重试.本次重试计划等待[8000]ms,实际等待[8000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:18:23.395 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第5次重试.本次重试计划等待[16000]ms,实际等待[16000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:18:55.401 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第6次重试.本次重试计划等待[32000]ms,实际等待[32000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]

我重启修复 ob 添加proxy ,现在ob串不报错了,开始mysql端报连接不上了

如果 oceanbasev10writer 连接语法是现在这种:“jdbcUrl”:“jdbc:oceanbase://172.20.16.116:2883/db11?”
那么后面的 "username": 后面就要写完整的用户名。如: datax@租户名#集群名 ,否则默认就连接到 sys租户了。

另外 帖子编辑技巧:用markdown 引用文本语法 可以将你的日志引用起来 格式会好很多。比如说

2024-03-11 14:17:51.082 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“mysqlreader”,
“parameter”:{
“column”:[
“"
],
“connection”:[
{
“jdbcUrl”:[
“jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8”
],
“table”:[
“student”
]
}
],
“password”:"********",
“username”:“root”
}
},
“writer”:{
“name”:“oceanbasev10writer”,
“parameter”:{
“batchSize”:1000,
“column”:[
"”
],
“connection”:[
{
“jdbcUrl”:“jdbc:oceanbase://172.20.16.116:2883/db11?”,
“table”:[
“student”
]
}
],
“memstoreThreshold”:“0.9”,
“obWriteMode”:“insert”,
“password”:"*********",
“preSql”:[
“truncate table student”
],
“username”:“root”,
“writerThreadCount”:10
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.1,
“record”:0
},
“speed”:{
“channel”:4
}
}
}

2024-03-11 14:17:51.111 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 14:17:51.113 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 14:17:51.114 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 14:17:51.120 [main] INFO JobContainer - Set jobId = 0
2024-03-11 14:17:51.965 [job-0] INFO OriginalConfPretreatmentUtil - Available jdbcUrl:jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 14:17:51.966 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置存在一定的风险. 因为您未配置读取数据库表的列,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 14:17:52.362 [job-0] ERROR RetryUtil - Exception when calling callable, 异常Msg:Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)
com.alibaba.datax.common.exception.DataXException: Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.RdbmsException.asConnException(RdbmsException.java:36) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:394) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.connect(DBUtil.java:384) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.access$000(DBUtil.java:22) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:322) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil$3.call(DBUtil.java:319) ~[plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.call(RetryUtil.java:164) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil$Retry.doRetry(RetryUtil.java:111) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.common.util.RetryUtil.executeWithRetry(RetryUtil.java:30) [datax-common-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:319) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.rdbms.util.DBUtil.getConnection(DBUtil.java:303) [plugin-rdbms-util-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.util.DbUtils.fetchSingleValueWithRetry(DbUtils.java:50) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.checkCompatibleMode(OceanBaseV10Writer.java:184) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Job.init(OceanBaseV10Writer.java:62) [oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.initJobWriter(JobContainer.java:704) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:304) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na]
2024-03-11 14:17:53.364 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第1次重试.本次重试计划等待[1000]ms,实际等待[1000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:17:55.371 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第2次重试.本次重试计划等待[2000]ms,实际等待[2000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:17:59.378 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第3次重试.本次重试计划等待[4000]ms,实际等待[4001]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:18:07.384 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第4次重试.本次重试计划等待[8000]ms,实际等待[8000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:18:23.395 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第5次重试.本次重试计划等待[16000]ms,实际等待[16000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]
2024-03-11 14:18:55.401 [job-0] ERROR RetryUtil - Exception when calling callable, 即将尝试执行第6次重试.本次重试计划等待[32000]ms,实际等待[32000]ms, 异常Msg:[Code:[DBUtilErrorCode-10], Description:[连接数据库失败. 请检查您的 账号、密码、数据库名称、IP、Port或者向 DBA 寻求帮助(注意网络环境).]. - 具体错误信息为:com.alipay.oceanbase.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user ‘root@sys’@‘172.20.16.61’ (using password: YES)]

确实 我就是在sys租户 也创建了db11 也导入表了,按理应该可以呀

还有 就是 我的ob 使用的是mysql 模式 ,网上看obWriteMode”:应该是replace ,不知道对不

已经重新更改用户,目前连接不报错了,但是还是迁移报错,大神再给看看

2024-03-11 14:36:43.458 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“mysqlreader”,
“parameter”:{
“column”:[
"
],
“connection”:[
{
“jdbcUrl”:[
“jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8”
],
“table”:[
“student”
]
}
],
“password”:"********",
“username”:“datax”
}
},
“writer”:{
“name”:“oceanbasev10writer”,
“parameter”:{
“batchSize”:1000,
“column”:[
"

],
“connection”:[
{
“jdbcUrl”:“jdbc:oceanbase://172.20.16.116:2883/db11?”,
“table”:[
“student”
]
}
],
“memstoreThreshold”:“0.9”,
“obWriteMode”:“insert”,
“password”:"********",
“preSql”:[
“truncate table student”
],
“username”:“datax@sw_tenant_03#ob_cluster_02”,
“writerThreadCount”:10
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.1,
“record”:0
},
“speed”:{
“channel”:4
}
}
}

2024-03-11 14:36:43.491 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 14:36:43.496 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 14:36:43.496 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 14:36:43.499 [main] INFO JobContainer - Set jobId = 0
2024-03-11 14:36:44.261 [job-0] INFO OriginalConfPretreatmentUtil - Available jdbcUrl:jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 14:36:44.262 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置存在一定的风险. 因为您未配置读取数据库表的列,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 14:36:44.708 [job-0] INFO DbUtils - value for query [SHOW VARIABLES LIKE ‘ob_compatibility_mode’] is [MYSQL]
2024-03-11 14:36:44.864 [job-0] INFO OriginalConfPretreatmentUtil - table:[student] all columns:[
id,name,sex,birth,province,city,mobile_phone,email,create_time,update_time
].
2024-03-11 14:36:44.864 [job-0] WARN OriginalConfPretreatmentUtil - 您的配置文件中的列配置信息存在风险. 因为您配置的写入数据库表的列为*,当您的表字段个数、类型有变动时,可能影响任务正确性甚至会运行出错。请检查您的配置并作出修改.
2024-03-11 14:36:44.866 [job-0] INFO OriginalConfPretreatmentUtil - Write data [
INSERT INTO %s (id,name,sex,birth,province,city,mobile_phone,email,create_time,update_time) VALUES(?,?,?,?,?,?,?,?,?,?)
], which jdbcUrl like:[jdbc:oceanbase://172.20.16.116:2883/db11?&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true]
2024-03-11 14:36:44.866 [job-0] INFO JobContainer - jobContainer starts to do prepare …
2024-03-11 14:36:44.867 [job-0] INFO JobContainer - DataX Reader.Job [mysqlreader] do prepare work .
2024-03-11 14:36:44.867 [job-0] INFO JobContainer - DataX Writer.Job [oceanbasev10writer] do prepare work .
2024-03-11 14:36:44.927 [job-0] INFO CommonRdbmsWriter$Job - Begin to execute preSqls:[truncate table student]. context info:jdbc:oceanbase://172.20.16.116:2883/db11?&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true.
2024-03-11 14:36:45.167 [job-0] INFO DbUtils - value for query [show variables like ‘version’] is [5.7.25-OceanBase-v4.2.1.3]
2024-03-11 14:36:45.167 [job-0] INFO JobContainer - jobContainer starts to do split …
2024-03-11 14:36:45.167 [job-0] INFO JobContainer - Job set Channel-Number to 4 channels.
2024-03-11 14:36:45.171 [job-0] INFO JobContainer - DataX Reader.Job [mysqlreader] splits to [1] tasks.
2024-03-11 14:36:45.172 [job-0] INFO JobContainer - DataX Writer.Job [oceanbasev10writer] splits to [1] tasks.
2024-03-11 14:36:45.208 [job-0] INFO JobContainer - jobContainer starts to do schedule …
2024-03-11 14:36:45.213 [job-0] INFO JobContainer - Scheduler starts [1] taskGroups.
2024-03-11 14:36:45.222 [job-0] INFO JobContainer - Running by standalone Mode.
2024-03-11 14:36:45.249 [taskGroup-0] INFO TaskGroupContainer - taskGroupId=[0] start [1] channels for [1] tasks.
2024-03-11 14:36:45.314 [taskGroup-0] INFO Channel - Channel set byte_speed_limit to -1, No bps activated.
2024-03-11 14:36:45.314 [taskGroup-0] INFO Channel - Channel set record_speed_limit to -1, No tps activated.
2024-03-11 14:36:45.610 [0-0-0-writer] INFO OceanBaseV10Writer$Task - tableNumber:1,writerTask Class:com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask
2024-03-11 14:36:45.612 [0-0-0-writer] INFO ConcurrentTableWriterTask - configure url is unavailable, use obclient for connections.
2024-03-11 14:36:45.617 [taskGroup-0] INFO TaskGroupContainer - taskGroup[0] taskId[0] attemptCount[1] is started
2024-03-11 14:36:45.625 [0-0-0-reader] INFO CommonRdbmsReader$Task - Begin to read record by Sql: [select * from student
] jdbcUrl:[jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true].
2024-03-11 14:36:45.668 [0-0-0-writer] INFO ConcurrentTableWriterTask - Disable partition calculation feature.
2024-03-11 14:36:45.725 [0-0-0-writer] INFO CommonRdbmsWriter$Task - write mode: insert
2024-03-11 14:36:45.725 [0-0-0-writer] INFO ConcurrentTableWriterTask - writeRecordSql :INSERT INTO student (id,name,sex,birth,province,city,mobile_phone,email,create_time,update_time) VALUES(?,?,?,?,?,?,?,?,?,?)
2024-03-11 14:36:45.740 [0-0-0-writer] ERROR WriterRunner - Writer Runner Received Exceptions:
java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914) ~[na:1.8.0_282]
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122) ~[na:1.8.0_282]
at java.lang.Float.parseFloat(Float.java:451) ~[na:1.8.0_282]
at java.lang.Float.valueOf(Float.java:416) ~[na:1.8.0_282]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131) ~[oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210) ~[oceanbasev10writer-0.0.1-SNAPSHOT.jar:na]
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44) ~[datax-core-0.0.1-SNAPSHOT.jar:na]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_282]
2024-03-11 14:36:45.760 [0-0-0-reader] INFO CommonRdbmsReader$Task - Finished read record by Sql: [select * from student
] jdbcUrl:[jdbc:mysql://172.20.16.61:3306/db11?useUnicode=true&characterEncoding=utf8&yearIsDateType=false&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false&rewriteBatchedStatements=true].
Exception in thread “taskGroup-0” com.alibaba.datax.common.exception.DataXException: Code:[Framework-13], Description:[DataX插件运行时出错, 具体原因请参看DataX运行结束时的错误诊断信息 .]. - java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
at java.lang.Thread.run(Thread.java:748)

  • java.lang.NumberFormatException: multiple points
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
    at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
    at java.lang.Float.parseFloat(Float.java:451)
    at java.lang.Float.valueOf(Float.java:416)
    at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
    at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
    at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
    at java.lang.Thread.run(Thread.java:748)

     at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:40)
     at com.alibaba.datax.core.taskgroup.TaskGroupContainer.start(TaskGroupContainer.java:195)
     at com.alibaba.datax.core.taskgroup.runner.TaskGroupContainerRunner.run(TaskGroupContainerRunner.java:24)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at java.lang.Thread.run(Thread.java:748)
    

Caused by: java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
… 1 more
2024-03-11 14:36:55.585 [job-0] INFO StandAloneJobContainerCommunicator - Total 3 records, 167 bytes | Speed 16B/s, 0 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 0.000s | All Task WaitReaderTime 0.000s | Percentage 0.00%
2024-03-11 14:36:55.586 [job-0] ERROR JobContainer - 运行scheduler 模式[standalone]出错.
2024-03-11 14:36:55.588 [job-0] ERROR JobContainer - Exception when job run
com.alibaba.datax.common.exception.DataXException: Code:[Framework-13], Description:[DataX插件运行时出错, 具体原因请参看DataX运行结束时的错误诊断信息 .]. - java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
at java.lang.Thread.run(Thread.java:748)

  • java.lang.NumberFormatException: multiple points
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
    at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
    at java.lang.Float.parseFloat(Float.java:451)
    at java.lang.Float.valueOf(Float.java:416)
    at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
    at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
    at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
    at java.lang.Thread.run(Thread.java:748)

     at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:40) ~[datax-common-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.job.scheduler.processinner.ProcessInnerScheduler.dealFailedStat(ProcessInnerScheduler.java:39) ~[datax-core-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.job.scheduler.AbstractScheduler.schedule(AbstractScheduler.java:99) ~[datax-core-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.job.JobContainer.schedule(JobContainer.java:535) ~[datax-core-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:119) ~[datax-core-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na]
     at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na]
    

java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914) ~[na:1.8.0_282]
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122) ~[na:1.8.0_282]
at java.lang.Float.parseFloat(Float.java:451) ~[na:1.8.0_282]
at java.lang.Float.valueOf(Float.java:416) ~[na:1.8.0_282]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131) ~[na:na]
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210) ~[na:na]
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44) ~[datax-core-0.0.1-SNAPSHOT.jar:na]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_282]
2024-03-11 14:36:55.590 [job-0] INFO StandAloneJobContainerCommunicator - Total 3 records, 167 bytes | Speed 167B/s, 3 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 0.000s | All Task WaitReaderTime 0.000s | Percentage 0.00%
2024-03-11 14:36:55.591 [job-0] ERROR Engine -

经DataX智能分析,该任务最可能的错误原因是:
com.alibaba.datax.common.exception.DataXException: Code:[Framework-13], Description:[DataX插件运行时出错, 具体原因请参看DataX运行结束时的错误诊断信息 .]. - java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
at java.lang.Thread.run(Thread.java:748)

  • java.lang.NumberFormatException: multiple points
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
    at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
    at java.lang.Float.parseFloat(Float.java:451)
    at java.lang.Float.valueOf(Float.java:416)
    at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
    at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
    at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
    at java.lang.Thread.run(Thread.java:748)

     at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:40)
     at com.alibaba.datax.core.job.scheduler.processinner.ProcessInnerScheduler.dealFailedStat(ProcessInnerScheduler.java:39)
     at com.alibaba.datax.core.job.scheduler.AbstractScheduler.schedule(AbstractScheduler.java:99)
     at com.alibaba.datax.core.job.JobContainer.schedule(JobContainer.java:535)
     at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:119)
     at com.alibaba.datax.core.Engine.start(Engine.java:92)
     at com.alibaba.datax.core.Engine.entry(Engine.java:171)
     at com.alibaba.datax.core.Engine.main(Engine.java:204)
    

Caused by: java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1914)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask.init(ConcurrentTableWriterTask.java:131)
at com.alibaba.datax.plugin.writer.oceanbasev10writer.OceanBaseV10Writer$Task.init(OceanBaseV10Writer.java:210)
at com.alibaba.datax.core.taskgroup.runner.WriterRunner.run(WriterRunner.java:44)
at java.lang.Thread.run(Thread.java:748)

能写入了 就很不错了。
剩下的问题就是 JAVA 问题了,根据异常信息网上搜索排查了。
DATAX 作为一个数据迁移平台,是JAVA开发的,一头读,一头写。配置中 表的列名都写上,不要空着或用 星号(*) 。两端的表结构要能对应上。数据类型、精度至少要做到目标端能容纳源端。 按这个思路去排查吧。

好的 , 目前定位是java方面的问题呗,我再看看

再给看看 跑测试的时候 cpu是不是太小,导致我这个脚本启动失败呀

[root@mgr1 bin]#
[root@mgr1 bin]# python2 datax.py …/job/job.json

DataX (DATAX-OPENSOURCE-3.0), From Alibaba !
Copyright (C) 2010-2017, Alibaba Group. All Rights Reserved.

2024-03-11 16:18:41.818 [main] INFO VMInfo - VMInfo# operatingSystem class => sun.management.OperatingSystemImpl
2024-03-11 16:18:41.826 [main] INFO Engine - the machine info =>

    osInfo: Red Hat, Inc. 1.8 25.282-b08
    jvmInfo:        Linux amd64 4.18.0-305.el8.x86_64
    cpu num:        1

    totalPhysicalMemory:    -0.00G
    freePhysicalMemory:     -0.00G
    maxFileDescriptorCount: -1
    currentOpenFileDescriptorCount: -1

    GC Names        [Copy, MarkSweepCompact]

    MEMORY_NAME                    | allocation_size                | init_size                      
    Eden Space                     | 273.06MB                       | 273.06MB                       
    Code Cache                     | 240.00MB                       | 2.44MB                         
    Survivor Space                 | 34.13MB                        | 34.13MB                        
    Compressed Class Space         | 1,024.00MB                     | 0.00MB                         
    Metaspace                      | -0.00MB                        | 0.00MB                         
    Tenured Gen                    | 682.69MB                       | 682.69MB                       

2024-03-11 16:18:41.851 [main] INFO Engine -
{
“content”:[
{
“reader”:{
“name”:“streamreader”,
“parameter”:{
“column”:[
{
“type”:“string”,
“value”:“DataX”
},
{
“type”:“long”,
“value”:19890604
},
{
“type”:“date”,
“value”:“1989-06-04 00:00:00”
},
{
“type”:“bool”,
“value”:true
},
{
“type”:“bytes”,
“value”:“test”
}
],
“sliceRecordCount”:100000
}
},
“writer”:{
“name”:“streamwriter”,
“parameter”:{
“encoding”:“UTF-8”,
“print”:false
}
}
}
],
“setting”:{
“errorLimit”:{
“percentage”:0.02,
“record”:0
},
“speed”:{
“byte”:10485760
}
}
}

2024-03-11 16:18:41.884 [main] WARN Engine - prioriy set to 0, because NumberFormatException, the value is: null
2024-03-11 16:18:41.890 [main] INFO PerfTrace - PerfTrace traceId=job_-1, isEnable=false, priority=0
2024-03-11 16:18:41.890 [main] INFO JobContainer - DataX jobContainer starts job.
2024-03-11 16:18:41.892 [main] INFO JobContainer - Set jobId = 0
2024-03-11 16:18:41.914 [job-0] INFO JobContainer - jobContainer starts to do prepare …
2024-03-11 16:18:41.915 [job-0] INFO JobContainer - DataX Reader.Job [streamreader] do prepare work .
2024-03-11 16:18:41.926 [job-0] INFO JobContainer - DataX Writer.Job [streamwriter] do prepare work .
2024-03-11 16:18:41.927 [job-0] INFO JobContainer - jobContainer starts to do split …
2024-03-11 16:18:41.928 [job-0] INFO JobContainer - Job set Max-Byte-Speed to 10485760 bytes.
2024-03-11 16:18:41.929 [job-0] INFO JobContainer - DataX Reader.Job [streamreader] splits to [1] tasks.
2024-03-11 16:18:41.929 [job-0] INFO JobContainer - DataX Writer.Job [streamwriter] splits to [1] tasks.
2024-03-11 16:18:41.967 [job-0] INFO JobContainer - jobContainer starts to do schedule …
2024-03-11 16:18:41.972 [job-0] INFO JobContainer - Scheduler starts [1] taskGroups.
2024-03-11 16:18:41.979 [job-0] INFO JobContainer - Running by standalone Mode.
2024-03-11 16:18:42.002 [taskGroup-0] INFO TaskGroupContainer - taskGroupId=[0] start [1] channels for [1] tasks.
2024-03-11 16:18:42.006 [taskGroup-0] INFO Channel - Channel set byte_speed_limit to -1, No bps activated.
2024-03-11 16:18:42.006 [taskGroup-0] INFO Channel - Channel set record_speed_limit to -1, No tps activated.
2024-03-11 16:18:42.031 [taskGroup-0] INFO TaskGroupContainer - taskGroup[0] taskId[0] attemptCount[1] is started
2024-03-11 16:18:42.234 [taskGroup-0] INFO TaskGroupContainer - taskGroup[0] taskId[0] is successed, used[213]ms
2024-03-11 16:18:42.235 [taskGroup-0] INFO TaskGroupContainer - taskGroup[0] completed it’s tasks.
2024-03-11 16:18:52.002 [job-0] INFO StandAloneJobContainerCommunicator - Total 100000 records, 2600000 bytes | Speed 253.91KB/s, 10000 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 0.095s | All Task WaitReaderTime 0.113s | Percentage 100.00%
2024-03-11 16:18:52.002 [job-0] INFO AbstractScheduler - Scheduler accomplished all tasks.
2024-03-11 16:18:52.003 [job-0] INFO JobContainer - DataX Writer.Job [streamwriter] do post work.
2024-03-11 16:18:52.003 [job-0] INFO JobContainer - DataX Reader.Job [streamreader] do post work.
2024-03-11 16:18:52.003 [job-0] INFO JobContainer - DataX jobId [0] completed successfully.
2024-03-11 16:18:52.004 [job-0] INFO HookInvoker - No hook invoked, because base dir not exists or is a file: /tmp/datax/hook
2024-03-11 16:18:52.005 [job-0] INFO JobContainer -
[total cpu info] =>
averageCpu | maxDeltaCpu | minDeltaCpu
-1.00% | -1.00% | -1.00%

     [total gc info] => 
             NAME                 | totalGCCount       | maxDeltaGCCount    | minDeltaGCCount    | totalGCTime        | maxDeltaGCTime     | minDeltaGCTime     
             Copy                 | 0                  | 0                  | 0                  | 0.000s             | 0.000s             | 0.000s             
             MarkSweepCompact     | 0                  | 0                  | 0                  | 0.000s             | 0.000s             | 0.000s             

2024-03-11 16:18:52.005 [job-0] INFO JobContainer - PerfTrace not enable!
2024-03-11 16:18:52.006 [job-0] INFO StandAloneJobContainerCommunicator - Total 100000 records, 2600000 bytes | Speed 253.91KB/s, 10000 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 0.095s | All Task WaitReaderTime 0.113s | Percentage 100.00%
2024-03-11 16:18:52.007 [job-0] INFO JobContainer -
任务启动时刻 : 2024-03-11 16:18:41
任务结束时刻 : 2024-03-11 16:18:52
任务总计耗时 : 10s
任务平均流量 : 253.91KB/s
记录写入速度 : 10000rec/s
读出记录总数 : 100000
读写失败总数 : 0