Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taier1.3数据同步 java.lang.ClassNotFoundException: ch.qos.logback.classic.Logger #985

Closed
1 of 4 tasks
zqsgithub2023 opened this issue Feb 17, 2023 · 6 comments
Closed
1 of 4 tasks
Labels
question Further information is requested

Comments

@zqsgithub2023
Copy link

Search before asking

  • I had searched in the issues and found no similar question.

  • I had searched my question on the internet but i didn't get any help.

  • I had read the documentation: Taier doc but it didn't help me.

Description

image
任务能提交到flink集群上,就是报org.apache.flink.runtime.client.JobInitializationException: Could not instantiate JobManager.

Code of Conduct

@zqsgithub2023 zqsgithub2023 added the question Further information is requested label Feb 17, 2023
@vainhope
Copy link
Collaborator

报错可以贴详细点么
flink standalone的集群嘛

@zqsgithub2023
Copy link
Author

我是布置一个单机版的flink1.12.7,chunjun 用的最新发行版本1.27。
image
flink的配置也添加了
classloader.resolve-order: parent-first
classloader.check-leaked-classloader: false
最后就是通过taier 提交任务,任务到flink 就报
image
taier里的flink配置如下
image

@zqsgithub2023
Copy link
Author

同步任务【同步数据】开始执行
[09:57:44] 已经成功发送执行请求...
[09:57:44] 任务提交成功,名称为: run_sync_task_同步数据_1676858263335
[09:57:45] 等待运行.....
[09:57:47] 等待运行.....
[09:57:48] 等待运行.....
[09:57:50] 等待运行.....
[09:57:52] 等待运行.....
[09:57:53] 等待运行.....
[09:57:55] 等待运行.....
[09:57:55]
====================Flink日志====================
org.apache.flink.runtime.client.JobInitializationException: Could not instantiate JobManager.
at org.apache.flink.runtime.dispatcher.Dispatcher.lambda$createJobManagerRunner$5(Dispatcher.java:488)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
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:750)
Caused by: org.apache.flink.runtime.client.JobExecutionException: Cannot initialize task 'Source: mysqlsourcefactory -> Sink: mysqlsinkfactory': Loading the input/output formats failed:
at org.apache.flink.runtime.executiongraph.ExecutionGraphBuilder.buildGraph(ExecutionGraphBuilder.java:293)
at org.apache.flink.runtime.scheduler.SchedulerBase.createExecutionGraph(SchedulerBase.java:322)
at org.apache.flink.runtime.scheduler.SchedulerBase.createAndRestoreExecutionGraph(SchedulerBase.java:276)
at org.apache.flink.runtime.scheduler.SchedulerBase.(SchedulerBase.java:249)
at org.apache.flink.runtime.scheduler.DefaultScheduler.(DefaultScheduler.java:133)
at org.apache.flink.runtime.scheduler.DefaultSchedulerFactory.createInstance(DefaultSchedulerFactory.java:111)
at org.apache.flink.runtime.jobmaster.JobMaster.createScheduler(JobMaster.java:342)
at org.apache.flink.runtime.jobmaster.JobMaster.(JobMaster.java:327)
at org.apache.flink.runtime.jobmaster.factories.DefaultJobMasterServiceFactory.createJobMasterService(DefaultJobMasterServiceFactory.java:95)
at org.apache.flink.runtime.jobmaster.factories.DefaultJobMasterServiceFactory.createJobMasterService(DefaultJobMasterServiceFactory.java:39)
at org.apache.flink.runtime.jobmaster.JobManagerRunnerImpl.(JobManagerRunnerImpl.java:163)
at org.apache.flink.runtime.dispatcher.DefaultJobManagerRunnerFactory.createJobManagerRunner(DefaultJobManagerRunnerFactory.java:86)
at org.apache.flink.runtime.dispatcher.Dispatcher.lambda$createJobManagerRunner$5(Dispatcher.java:472)
... 4 more
Caused by: java.lang.Exception: Loading the input/output formats failed:
at org.apache.flink.runtime.jobgraph.InputOutputFormatVertex.initInputOutputformatContainer(InputOutputFormatVertex.java:172)
at org.apache.flink.runtime.jobgraph.InputOutputFormatVertex.initializeOnMaster(InputOutputFormatVertex.java:57)
at org.apache.flink.runtime.executiongraph.ExecutionGraphBuilder.buildGraph(ExecutionGraphBuilder.java:289)
... 16 more
Caused by: java.lang.RuntimeException: Deserializing the input/output formats failed: Could not read the user code wrapper: ch.qos.logback.classic.Logger
at org.apache.flink.runtime.jobgraph.InputOutputFormatContainer.(InputOutputFormatContainer.java:69)
at org.apache.flink.runtime.jobgraph.InputOutputFormatVertex.initInputOutputformatContainer(InputOutputFormatVertex.java:168)
... 18 more
Caused by: org.apache.flink.runtime.operators.util.CorruptConfigurationException: Could not read the user code wrapper: ch.qos.logback.classic.Logger
at org.apache.flink.runtime.operators.util.TaskConfig.getStubWrapper(TaskConfig.java:307)
at org.apache.flink.runtime.jobgraph.InputOutputFormatContainer.(InputOutputFormatContainer.java:66)
... 19 more
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at org.apache.flink.util.FlinkUserCodeClassLoader.loadClassWithoutExceptionHandling(FlinkUserCodeClassLoader.java:64)
at org.apache.flink.util.FlinkUserCodeClassLoader.loadClass(FlinkUserCodeClassLoader.java:48)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.flink.util.InstantiationUtil$ClassLoaderObjectInputStream.resolveClass(InstantiationUtil.java:76)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:2011)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1875)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2209)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:508)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:466)
at java.util.HashMap.readObject(HashMap.java:1418)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1185)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2345)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2454)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2378)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2236)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1692)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:508)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:466)
at org.apache.flink.util.InstantiationUtil.deserializeObject(InstantiationUtil.java:615)
at org.apache.flink.util.InstantiationUtil.deserializeObject(InstantiationUtil.java:600)
at org.apache.flink.util.InstantiationUtil.deserializeObject(InstantiationUtil.java:587)
at org.apache.flink.util.InstantiationUtil.readObjectFromConfig(InstantiationUtil.java:541)
at org.apache.flink.runtime.operators.util.TaskConfig.getStubWrapper(TaskConfig.java:304)
... 20 more

2023-02-20 09:57:53:submit job is success
====================任务信息====================
{
"job" : {
"content" : [ {
"reader" : {
"parameter" : {
"password" : "",
"startLocation" : "",
"increColumn" : "",
"column" : [ {
"name" : "id",
"type" : "INT UNSIGNED",
"key" : "id"
}, {
"name" : "classify_code",
"type" : "VARCHAR",
"key" : "classify_code"
}, {
"name" : "sorted",
"type" : "INT",
"key" : "sorted"
}, {
"name" : "classify_name",
"type" : "VARCHAR",
"key" : "classify_name"
}, {
"name" : "is_deleted",
"type" : "TINYINT",
"key" : "is_deleted"
}, {
"name" : "gmt_create",
"type" : "DATETIME",
"key" : "gmt_create"
}, {
"name" : "gmt_modified",
"type" : "DATETIME",
"key" : "gmt_modified"
} ],
"connection" : [ {
"sourceId" : 1,
"password" : "
",
"jdbcUrl" : [ "jdbc:mysql://192.168.168.200:3306/iccm_ermp" ],
"type" : 1,
"table" : [ "datasource_classify" ],
"username" : "root"
} ],
"sourceIds" : [ 1 ],
"username" : "root"
},
"name" : "mysqlreader"
},
"writer" : {
"parameter" : {
"postSql" : [ ],
"password" : "**",
"column" : [ {
"name" : "id",
"isPart" : false,
"type" : "INT UNSIGNED",
"key" : "id"
}, {
"name" : "classify_code",
"isPart" : false,
"type" : "VARCHAR",
"key" : "classify_code"
}, {
"name" : "sorted",
"isPart" : false,
"type" : "INT",
"key" : "sorted"
}, {
"name" : "classify_name",
"isPart" : false,
"type" : "VARCHAR",
"key" : "classify_name"
}, {
"name" : "is_deleted",
"isPart" : false,
"type" : "TINYINT",
"key" : "is_deleted"
}, {
"name" : "gmt_create",
"isPart" : false,
"type" : "DATETIME",
"key" : "gmt_create"
}, {
"name" : "gmt_modified",
"isPart" : false,
"type" : "DATETIME",
"key" : "gmt_modified"
} ],
"connection" : [ {
"jdbcUrl" : "jdbc:mysql://192.168.168.200:3306/iccm_ermp",
"table" : [ "bakdatasource_classify" ]
} ],
"sourceIds" : [ 1 ],
"preSql" : [ ],
"username" : "root"
},
"name" : "mysqlwriter"
}
} ],
"setting" : {
"restore" : {
"isRestore" : false,
"isStream" : false
},
"speed" : {
"readerChannel" : 1,
"writerChannel" : 1,
"bytes" : -1048576,
"channel" : 1
}
}
}
}

[09:57:55] 运行失败

@zqsgithub2023
Copy link
Author

问已经解决了,少了ogback-core-1.2.11.jar ;logback-classic-1.2.11.jar 个包,从网上https://mvnrepository.com/artifact/ch.qos.logback/logback-classic/1.2.11 下载的。

@Jixiangup Jixiangup mentioned this issue Feb 21, 2023
@Jixiangup Jixiangup changed the title taier1.3数据同步问题 taier1.3数据同步 java.lang.ClassNotFoundException: ch.qos.logback.classic.Logger Feb 21, 2023
@Jixiangup
Copy link
Collaborator

Jixiangup commented Feb 21, 2023

数据同步报错QA #260

@peterfei
Copy link

问已经解决了,少了ogback-core-1.2.11.jar ;logback-classic-1.2.11.jar 个包,从网上https://mvnrepository.com/artifact/ch.qos.logback/logback-classic/1.2.11 下载的。

你好,麻烦问下,这个包是放在哪的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants