confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.23k stars 1.11k forks source link

Exception in thread "main" java.lang.NoSuchFieldError: PASSWORD in Kafka #952

Open NARENRAHUL opened 5 years ago

NARENRAHUL commented 5 years ago

root@tesla:/home/naren# /usr/bin/schema-registry-start /etc/schema-registry/schema-registry.properties Exception in thread "main" java.lang.NoSuchFieldError: PASSWORD at io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig.baseSchemaRegistryConfigDef(SchemaRegistryConfig.java:399) at io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig.(SchemaRegistryConfig.java:320) at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:41)

B0bSapp commented 5 years ago

I face similar issue while starting consumer or producer on kafka-avro-serializer 5.0.1 version, but root cause is slightly different: Caused by: java.lang.NoSuchFieldError: PASSWORD at io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig.baseConfigDef(AbstractKafkaAvroSerDeConfig.java:92) at io.confluent.kafka.serializers.KafkaAvroSerializerConfig.(KafkaAvroSerializerConfig.java:28) at io.confluent.kafka.serializers.KafkaAvroSerializer.configure(KafkaAvroSerializer.java:48) According to this page https://docs.confluent.io/current/schema-registry/docs/serializer-formatter.html#basic-auth-security it should be enough to pass user/password in schema url, but it did not help for me.

rahul45 commented 5 years ago

Is there any solution of this ?

NARENRAHUL commented 5 years ago

I reinstalled my os😅

On Wed, 26 Jun 2019, 18:50 rahul45, notifications@github.com wrote:

Is there any solution of this ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/confluentinc/schema-registry/issues/952?email_source=notifications&email_token=AJ6EG3X6HQFLBNG2SGM636LP4NUI7A5CNFSM4GKAOHS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYTPXGY#issuecomment-505871259, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ6EG3QW236LDTEPPGD32BDP4NUI7ANCNFSM4GKAOHSQ .