connect.service使用新的java版本失败

bejyjqdl  于 2021-06-04  发布在  Kafka
关注(0)|答案(0)|浏览(350)

我们面临的以下问题似乎是由于新升级的java版本(从1.8.0.181到1.8.0.242)中弃用了密码,这看起来像是新版本加密中的一个问题。
kafka版本是kafka-1.1.0-confluent5.3.1 hadoop版本是2.6.5

trace": "org.apache.kafka.connect.errors.ConnectException: java.io.IOException: Login failure for kafkaflow@xxxxx.COM from keytab /home/kafka/.keytabs/cedp-prod/kafkaflow.keytab: javax.security.auth.login.LoginException: Message stream modified (41)\n\tat io.confluent.connect.hdfs.DataWriter.\u003cinit\u003e(DataWriter.java:346)\n\tat io.confluent.connect.hdfs.DataWriter.\u003cinit\u003e(DataWriter.java:102)\n\tat io.confluent.connect.hdfs.HdfsSinkTask.start(HdfsSinkTask.java:88)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.initializeAndStart(WorkerSinkTask.java:300)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:189)\n\tat org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)\n\tat org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.io.IOException: Login failure for kafkaflow@xxxxxx.COM from keytab /home/kafka/.keytabs/cedp-prod/kafkaflow.keytab: javax.security.auth.login.LoginException: Message stream modified (41)\n\tat org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:963)\n\tat io.confluent.connect.hdfs.DataWriter.\u003cinit\u003e(DataWriter.java:173)\n\t... 11 more\nCaused by: javax.security.auth.login.LoginException: Message stream modified (41)\n\tat com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:808)\n\tat com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:618)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)\n\tat javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)\n\tat javax.security.auth.login.LoginContext.login(LoginContext.java:587)\n\tat org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:954)\n\t... 12 more\nCaused by: KrbException: Message stream modified (41)\n\tat sun.security.krb5.KrbKdcRep.check(KrbKdcRep.java:101)\n\tat sun.security.krb5.KrbAsRep.decrypt(KrbAsRep.java:159)\n\tat sun.security.krb5.KrbAsRep.decryptUsingKeyTab(KrbAsRep.java:121)\n\tat sun.security.krb5.KrbAsReqBuilder.resolve(KrbAsReqBuilder.java:308)\n\tat sun.security.krb5.KrbAsReqBuilder.action(KrbAsReqBuilder.java:447)\n\tat
trace": "org.apache.kafka.connect.errors.ConnectException: java.io.IOException: Login failure for kafkaflow@xxxxx.COM from keytab /home/kafka/.keytabs/cedp-prod/kafkaflow.keytab: javax.security.auth.login.LoginException: Message stream modified (41)\n\tat io.confluent.connect.hdfs.DataWriter.\u003cinit\u003e(DataWriter.java:346)\n\tat io.confluent.connect.hdfs.DataWriter.\u003cinit\u003e(DataWriter.java:102)\n\tat io.confluent.connect.hdfs.HdfsSinkTask.start(HdfsSinkTask.java:88)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.initializeAndStart(WorkerSinkTask.java:300)\n\tat org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:189)\n\tat org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:177)\n\tat org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:227)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.io.IOException: Login failure for kafkaflow@XXXX.COM from keytab /home/kafka/.keytabs/cedp-prod/kafkaflow.keytab: javax.security.auth.login.LoginException: Message stream modified (41)\n\tat org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:963)\n\tat io.confluent.connect.hdfs.DataWriter.\u003cinit\u003e(DataWriter.java:173)\n\t... 11 more\nCaused by: javax.security.auth.login.LoginException: Message stream modified (41)\n\tat com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:808)\n\tat com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:618)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)\n\tat javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)\n\tat javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)\n\tat javax.security.auth.login.LoginContext.login(LoginContext.java:587)\n\tat org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:954)\n\t... 12 more\nCaused by: KrbException: Message stream modified (41)\n\tat sun.security.krb5.KrbKdcRep.check(KrbKdcRep.java:101)\n\tat sun.security.krb5.KrbAsRep.decrypt(KrbAsRep.java:159)\n\tat sun.security.krb5.KrbAsRep.decryptUsingKeyTab(KrbAsRep.java:121)\n\tat sun.security.krb5.KrbAsReqBuilder.resolve(KrbAsReqBuilder.java:308)\n\tat sun.security.krb5.KrbAsReqBuilder.action(KrbAsReqBuilder.java:447)\n\tat

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题