Hi,
I've this problem in a Kerberized environment: when I start the connector everything is working fine, I obtain my Kerberos credentials and the connector start writing without issues. The problem begin when a day after the ticket from Kerberos is renewed and the connector crash immediatly with this error:
ERROR Recovery failed at state RECOVERY_PARTITION_PAUSED (io.confluent.connect.hdfs.TopicPartitionWriter:221) org.apache.kafka.connect.errors.ConnectException: java.io.IOException: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "mitstatlodpbroker01/10.72.176.22"; destination host is: "mitstatlodpmaster01":8020;
at io.confluent.connect.hdfs.wal.FSWAL.apply(FSWAL.java:131)
at io.confluent.connect.hdfs.TopicPartitionWriter.applyWAL(TopicPartitionWriter.java:519)
at io.confluent.connect.hdfs.TopicPartitionWriter.recover(TopicPartitionWriter.java:204)
at io.confluent.connect.hdfs.TopicPartitionWriter.write(TopicPartitionWriter.java:234)
at io.confluent.connect.hdfs.DataWriter.write(DataWriter.java:234)
at io.confluent.connect.hdfs.HdfsSinkTask.put(HdfsSinkTask.java:91)
at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:287)
at org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:176)
at org.apache.kafka.connect.runtime.WorkerSinkTaskThread.iteration(WorkerSinkTaskThread.java:90)
at org.apache.kafka.connect.runtime.WorkerSinkTaskThread.execute(WorkerSinkTaskThread.java:58)
at org.apache.kafka.connect.util.ShutdownableThread.run(ShutdownableThread.java:82)
it is strange because the connector is able to renew periodically the ticket (due to the async function in DataWriter class) but the issue still there and I've to restart manually the connector every time that this error happen.
Did you know this error or there is something that maybe I'm doing wrong?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/e7f0564d-9ec8-4061-a649-e22edd4196f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Alex,Can you share with me your HDFS connector configuration? Especially configurations with Hadoop security settings. Thanks!Liquan
On Mon, May 2, 2016 at 6:47 AM, Alex Piermatteo <piermat...@gmail.com> wrote:
Hi,
I've this problem in a Kerberized environment: when I start the connector everything is working fine, I obtain my Kerberos credentials and the connector start writing without issues. The problem begin when a day after the ticket from Kerberos is renewed and the connector crash immediatly with this error:
ERROR Recovery failed at state RECOVERY_PARTITION_PAUSED (io.confluent.connect.hdfs.TopicPartitionWriter:221) org.apache.kafka.connect.errors.ConnectException: java.io.IOException: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "mitstatlodpbroker01/10.72.176.22"; destination host is: "mitstatlodpmaster01":8020;
at io.confluent.connect.hdfs.wal.FSWAL.apply(FSWAL.java:131)
at io.confluent.connect.hdfs.TopicPartitionWriter.applyWAL(TopicPartitionWriter.java:519)
at io.confluent.connect.hdfs.TopicPartitionWriter.recover(TopicPartitionWriter.java:204)
at io.confluent.connect.hdfs.TopicPartitionWriter.write(TopicPartitionWriter.java:234)
at io.confluent.connect.hdfs.DataWriter.write(DataWriter.java:234)
at io.confluent.connect.hdfs.HdfsSinkTask.put(HdfsSinkTask.java:91)
at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:287)
at org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:176)
at org.apache.kafka.connect.runtime.WorkerSinkTaskThread.iteration(WorkerSinkTaskThread.java:90)
at org.apache.kafka.connect.runtime.WorkerSinkTaskThread.execute(WorkerSinkTaskThread.java:58)
at org.apache.kafka.connect.util.ShutdownableThread.run(ShutdownableThread.java:82)it is strange because the connector is able to renew periodically the ticket (due to the async function in DataWriter class) but the issue still there and I've to restart manually the connector every time that this error happen.
Did you know this error or there is something that maybe I'm doing wrong?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/e7f0564d-9ec8-4061-a649-e22edd4196f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Liquan,thank you for your quick response, please find below my connector configuration:
{"name": "kafka-connect-hdfs-jdbctopic","hdfs.url": "hdfs://mitstatlodpmaster01:8020","hadoop.conf.dir": "/etc/hadoop/conf","connector.class": "io.confluent.connect.hdfs.HdfsSinkConnector","flush.size": "134217728","rotate.interval.ms": "10000","topics.dir": "/data/raw/usr/mgt","logs.dir": "/data/raw/usr/mgt/log","topics": "raw_usr_mgt_v_bi_activation,raw_usr_mgt_v_bi_coupon,raw_usr_mgt_v_bi_coupon_rule,raw_usr_mgt_v_bi_creditmemo","tasks.max": "2","partitioner.class": "io.confluent.connect.hdfs.partitioner.DailyPartitioner","locale": "en","timezone": "UTC","hdfs.authentication.kerberos": "true","connect.hdfs.principal": "ka...@SKY.LOCAL","connect.hdfs.keytab": "/opt/kerberos/keytabs/kafka.keytab",
"hdfs.namenode.principal": "hdfs/mitstatlodpmaster01.sky.lo...@SKY.LOCAL"}
HI,Please did you install kerberos on host where kafka connector is running to generate ticket for user ?
Le lundi 2 mai 2016 17:37:07 UTC+2, Alex Piermatteo a écrit :
Hi Liquan,thank you for your quick response, please find below my connector configuration:
{"name": "kafka-connect-hdfs-jdbctopic","hdfs.url": "hdfs://mitstatlodpmaster01:8020","hadoop.conf.dir": "/etc/hadoop/conf","connector.class": "io.confluent.connect.hdfs.HdfsSinkConnector","flush.size": "134217728","rotate.interval.ms": "10000","topics.dir": "/data/raw/usr/mgt","logs.dir": "/data/raw/usr/mgt/log","topics": "raw_usr_mgt_v_bi_activation,raw_usr_mgt_v_bi_coupon,raw_usr_mgt_v_bi_coupon_rule,raw_usr_mgt_v_bi_creditmemo","tasks.max": "2","partitioner.class": "io.confluent.connect.hdfs.partitioner.DailyPartitioner","locale": "en","timezone": "UTC","hdfs.authentication.kerberos": "true","connect.hdfs.principal": "ka...@SKY.LOCAL","connect.hdfs.keytab": "/opt/kerberos/keytabs/kafka.keytab",
"hdfs.namenode.principal": "hdfs/mitstatlodpmas...@SKY.LOCAL"}
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/e7f0564d-9ec8-4061-a649-e22edd4196f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Liquan Pei | Software Engineer | Confluent | +1 413.230.6855Download Apache Kafka and Confluent Platform: www.confluent.io/download
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/173702a7-6f2a-4110-8927-509c179e941e%40googlegroups.com.