Hi All,
I am getting the below error while trying to connect to Kafka from Logstash .
Exception in thread "Ruby-0-Thread-20: /Users/sn2/Desktop/logstash-5.6.1/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-5.1.11/lib/logstash/inputs/kafka.rb:229" org.apache.kafka.common.errors.GroupAuthorizationException: Not authorized to access group: logstash
I am using Logstash Version 5.6.1 and Kafka version : 0.10.0.1. Kafka is provisioned in amazon AWS and it is using SSL Security Access.
Logstash Logs :
Sending Logstash's logs to /Users/sn2/Desktop/logstash-5.6.1/logs which is now configured via log4j2.properties
[2017-11-07T13:52:28,171][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/Users/sn2/Desktop/logstash-5.6.1/modules/fb_apache/configuration"}
[2017-11-07T13:52:28,175][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/Users/sn2/Desktop/logstash-5.6.1/modules/netflow/configuration"}
[2017-11-07T13:52:28,338][INFO ][logstash.pipeline ] Starting pipeline {"id"=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>1000}
[2017-11-07T13:52:28,519][INFO ][logstash.pipeline ] Pipeline main started
[2017-11-07T13:52:28,583][INFO ][org.apache.kafka.clients.consumer.ConsumerConfig] ConsumerConfig values:
metric.reporters = []
metadata.max.age.ms = 300000
partition.assignment.strategy = [org.apache.kafka.clients.consumer.RangeAssignor]
reconnect.backoff.ms = 50
sasl.kerberos.ticket.renew.window.factor = 0.8
max.partition.fetch.bytes = 1048576
bootstrap.servers = [kafka+ssl://ec2-34-205-227-216.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-233-75-247.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-198-118-170.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-231-150-104.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-233-209-20.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-233-131-252.compute-1.amazonaws.com:9096, kafka+ssl://ec2-52-205-198-73.compute-1.amazonaws.com:9096, kafka+ssl://ec2-52-4-109-80.compute-1.amazonaws.com:9096]
ssl.keystore.type = JKS
enable.auto.commit = true
sasl.mechanism = GSSAPI
interceptor.classes = null
exclude.internal.topics = true
ssl.truststore.password = [hidden]
client.id = logstash-0
ssl.endpoint.identification.algorithm = null
max.poll.records = 2147483647
check.crcs = true
request.timeout.ms = 40000
heartbeat.interval.ms = 3000
auto.commit.interval.ms = 5000
receive.buffer.bytes = 65536
ssl.truststore.type = JKS
ssl.truststore.location = ssl_truststore.jks
ssl.keystore.password = [hidden]
fetch.min.bytes = 1
send.buffer.bytes = 131072
value.deserializer = class org.apache.kafka.common.serialization.StringDeserializer
group.id = logstash
retry.backoff.ms = 100
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.service.name = null
sasl.kerberos.ticket.renew.jitter = 0.05
ssl.trustmanager.algorithm = PKIX
ssl.key.password = null
fetch.max.wait.ms = 500
sasl.kerberos.min.time.before.relogin = 60000
connections.max.idle.ms = 540000
session.timeout.ms = 30000
metrics.num.samples = 2
key.deserializer = class org.apache.kafka.common.serialization.StringDeserializer
ssl.protocol = TLS
ssl.provider = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.keystore.location = ssl_keystore.jks
ssl.cipher.suites = null
security.protocol = SSL
ssl.keymanager.algorithm = SunX509
metrics.sample.window.ms = 30000
auto.offset.reset = latest
[2017-11-07T13:52:28,587][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2017-11-07T13:52:29,773][INFO ][org.apache.kafka.clients.consumer.ConsumerConfig] ConsumerConfig values:
metric.reporters = []
metadata.max.age.ms = 300000
partition.assignment.strategy = [org.apache.kafka.clients.consumer.RangeAssignor]
reconnect.backoff.ms = 50
sasl.kerberos.ticket.renew.window.factor = 0.8
max.partition.fetch.bytes = 1048576
bootstrap.servers = [kafka+ssl://ec2-34-205-227-216.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-233-75-247.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-198-118-170.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-231-150-104.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-233-209-20.compute-1.amazonaws.com:9096, kafka+ssl://ec2-34-233-131-252.compute-1.amazonaws.com:9096, kafka+ssl://ec2-52-205-198-73.compute-1.amazonaws.com:9096, kafka+ssl://ec2-52-4-109-80.compute-1.amazonaws.com:9096]
ssl.keystore.type = JKS
enable.auto.commit = true
sasl.mechanism = GSSAPI
interceptor.classes = null
exclude.internal.topics = true
ssl.truststore.password = [hidden]
client.id = logstash-0
ssl.endpoint.identification.algorithm = null
max.poll.records = 2147483647
check.crcs = true
request.timeout.ms = 40000
heartbeat.interval.ms = 3000
auto.commit.interval.ms = 5000
receive.buffer.bytes = 65536
ssl.truststore.type = JKS
ssl.truststore.location = ssl_truststore.jks
ssl.keystore.password = [hidden]
fetch.min.bytes = 1
send.buffer.bytes = 131072
value.deserializer = class org.apache.kafka.common.serialization.StringDeserializer
group.id = logstash
retry.backoff.ms = 100
sasl.kerberos.kinit.cmd = /usr/bin/kinit
sasl.kerberos.service.name = null
sasl.kerberos.ticket.renew.jitter = 0.05
ssl.trustmanager.algorithm = PKIX
ssl.key.password = null
fetch.max.wait.ms = 500
sasl.kerberos.min.time.before.relogin = 60000
connections.max.idle.ms = 540000
session.timeout.ms = 30000
metrics.num.samples = 2
key.deserializer = class org.apache.kafka.common.serialization.StringDeserializer
ssl.protocol = TLS
ssl.provider = null
ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
ssl.keystore.location = ssl_keystore.jks
ssl.cipher.suites = null
security.protocol = SSL
ssl.keymanager.algorithm = SunX509
metrics.sample.window.ms = 30000
auto.offset.reset = latest
[2017-11-07T13:52:29,798][INFO ][org.apache.kafka.common.utils.AppInfoParser] Kafka version : 0.10.0.1
[2017-11-07T13:52:29,798][INFO ][org.apache.kafka.common.utils.AppInfoParser] Kafka commitId : a7a17cdec9eaa6c5
Exception in thread "Ruby-0-Thread-20: /Users/sn2/Desktop/logstash-5.6.1/vendor/bundle/jruby/1.9/gems/logstash-input-kafka-5.1.11/lib/logstash/inputs/kafka.rb:229" org.apache.kafka.common.errors.GroupAuthorizationException: Not authorized to access group: logstash
[2017-11-07T13:52:31,542][WARN ][logstash.agent ] stopping pipeline {:id=>"main"}
Thanks,
Suresh