Open josh-padnick opened 6 years ago
A colleague asked what version of REST Proxy I was on, and while I was pretty sure I installed v4.0.0 and confirmed as such, I couldn't find a way to verify the version of REST Proxy that I'm actually running, even in log files. Is there an authoritative way to do this?
The best I could come up with so far is:
root@4e863eeb1535:/usr/share/java/kafka-rest# ls -al /usr/share/java/kafka-rest/ | grep kafka-rest
-rw-r--r-- 1 root root 202273 Apr 11 21:32 kafka-rest-4.0.0.jar
-rw-r--r-- 1 root root 202275 Mar 29 22:13 kafka-rest-4.0.1.jar
I was experiencing the above issue while running a REST Proxy cluster in Docker, however I don't seem to have the same issues when running the cluster on EC2! I can't explain why this wouldn't work on Docker, since I use the same Packer image to build an AMI and a Docker Image, o I'll leave the ticket open for now.
I have the same issue right now when installing Confluent Platform OSS 4.1.1 with Kafka REST 4.1.1.
This is my configuration for my 3 zk and 4 broker cluster with one vm for the confluent services I simplified the hostnames, in real this are the FQDN
id=1
host.name=cp3301
bootstrap.servers=cp1201:9093,cp1202:9093,cp2201:9093,cp2202:9093
zookeeper.connect=cp1101:2181,cp3101:2181,cp2101:2181/var/lib/zookeeper
listeners=http://cp3301:8082
schema.registry.url=http://cp3301:8081
#SASL additions
client.security.protocol=SASL_PLAINTEXT
client.sasl.mechanism=PLAIN
The full log of one start in the attachment.
[2018-07-04 09:44:13,139] INFO zookeeper state changed (SyncConnected) (org.I0Itec.zkclient.ZkClient:713)
[2018-07-04 09:44:13,146] INFO zookeeper state changed (SaslAuthenticated) (org.I0Itec.zkclient.ZkClient:713)
[2018-07-04 09:44:13,161] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$:31)
[2018-07-04 09:44:13,201] INFO Verifying properties (kafka.utils.VerifiableProperties:66)
[2018-07-04 09:44:13,217] WARN Property bootstrap.servers is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,218] WARN Property client.sasl.mechanism is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,218] WARN Property client.security.protocol is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,218] INFO Property group.id is overridden to (kafka.utils.VerifiableProperties:66)
[2018-07-04 09:44:13,219] WARN Property host.name is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,219] WARN Property id is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,219] WARN Property listeners is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,219] WARN Property schema.registry.url is not valid (kafka.utils.VerifiableProperties:70)
[2018-07-04 09:44:13,219] INFO Property zookeeper.connect is overridden to (kafka.utils.VerifiableProperties:66)
Did anyone figure this out?
Hi,
I'm facing the same issue. I get the messages saying that Property is not valid. How do I fix it? And why do I get this error? I'm using the newest version of the Kafka REST Proxy.
[2020-03-25 10:50:36,272] INFO Logging initialized @561ms to org.eclipse.jetty.util.log.Slf4jLog (org.eclipse.jetty.util.log:169) [2020-03-25 10:50:36,361] WARN DEPRECATION warning:
listenersconfiguration is not configured. Falling back to the deprecated
portconfiguration. (io.confluent.rest.ApplicationServer:93) [2020-03-25 10:50:36,362] INFO Adding listener: http://0.0.0.0:8082 (io.confluent.rest.ApplicationServer:316) [2020-03-25 10:50:36,622] INFO Registered kafka:type=kafka.Log4jController MBean (io.confluent.kafka.utils.Log4jControllerRegistration$:31) [2020-03-25 10:50:36,906] INFO Verifying properties (io.confluent.kafka.utils.VerifiableProperties:66) [2020-03-25 10:50:36,955] WARN Property authentication.method is not valid (io.confluent.kafka.utils.VerifiableProperties:70) [2020-03-25 10:50:36,956] WARN Property authentication.realm is not valid (io.confluent.kafka.utils.VerifiableProperties:70) [2020-03-25 10:50:36,956] WARN Property authentication.roles is not valid (io.confluent.kafka.utils.VerifiableProperties:70) [2020-03-25 10:50:36,956] WARN Property bootstrap.servers is not valid (io.confluent.kafka.utils.VerifiableProperties:70) [2020-03-25 10:50:36,956] WARN Property debug is not valid (io.confluent.kafka.utils.VerifiableProperties:70) [2020-03-25 10:50:36,957] INFO Property group.id is overridden to (io.confluent.kafka.utils.VerifiableProperties:66) [2020-03-25 10:50:36,957] INFO Property zookeeper.connect is overridden to (io.confluent.kafka.utils.VerifiableProperties:66) [2020-03-25 10:50:36,975] INFO KafkaAvroDeserializerConfig values: bearer.auth.token = [hidden]
Same exact happens when starting confluent-kafka-rest
with following config
# Unique ID for the Confluent REST Proxy server instance
id=server-01
# The base URL for Schema Registry that should be used by the serializer
schema.registry.url=https://server-01:8081,https://server-02:8081,https://server-03.mnw.no:8081
# A list of Kafka brokers to connect to discover list of all brokers
bootstrap.servers=SSL://server-01:9093,SSL://server-02:9093,SSL://server-03:9093
# listeners
listeners=https://server-01:8082
# SSL
# REST API
ssl.enabled.protocols=TLSv1.2
ssl.keystore.location=/etc/ssl/kafka.server.keystore.jks
ssl.keystore.password=<redacted>
ssl.key.password=<redacted>
# Communication with Kafka Broker
client.security.protocol=SSL
client.ssl.enabled.protocols=TLSv1.2
client.ssl.truststore.location=/etc/ssl/kafka.server.truststore.jks
client.ssl.truststore.password=<redacted>
In the logs just after INFO Verifying properties
when starting the component
[2020-09-25 15:37:39,340] INFO Verifying properties (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,401] WARN Property bootstrap.servers is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,402] WARN Property client.security.protocol is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,402] WARN Property client.ssl.enabled.protocols is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,402] WARN Property client.ssl.truststore.location is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,403] WARN Property client.ssl.truststore.password is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,404] INFO Property group.id is overridden to (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,404] WARN Property id is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,404] WARN Property listeners is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,405] WARN Property schema.registry.url is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,405] WARN Property ssl.enabled.protocols is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,405] WARN Property ssl.key.password is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,407] WARN Property ssl.keystore.location is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,407] WARN Property ssl.keystore.password is not valid (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,407] INFO Property zookeeper.connect is overridden to (io.confluent.kafka.utils.VerifiableProperties)
[2020-09-25 15:37:39,428] INFO KafkaAvroDeserializerConfig values:
EDIT: Confluent Community package version is5.5.1
Any resolution to this?
I'm configuring REST Proxy by closely following the recommended configuration properties, however the behavior I'm seeing is not consistent with the documentation.
When I run REST Proxy, here's the log output I see:
And here's the config file I'm using:
For the
bootstrap.servers
property, I also triedPLAINTEXT://172.21.0.2:9092,PLAINTEXT://172.21.0.3:9092,PLAINTEXT://172.21.0.4:9092
, but it has the same result (as I would expect).But I'm confused by all the log messages that indicate properties are being overridden or that they're not valid.
As you can see in the logs, REST Proxy starts its listener successfully, but then when I attempt to do anything, I get these error messages:
I can fix the above issue by reverting back to using
zookeeper.connect
, so that my config file looks like this:Then logs look fine:
And sure enough REST Proxy works without issue. Can you help me understand what's going on here?
Update: Note that I also tried using
bootstrap.servers
andzookeeper.connect
at the same time, and that had the same results as only usingbootstrap.servers
.