title: "SchemaRegistryException: Failed to get Kafka cluster ID" for LOCAL setup
body: <p>I'm downloaded the .tz (I am on MAC) for confluent version <code>7.0.0</code> from the official confluent site and was following the setup for <strong>LOCAL</strong> (1 node) and <strong>Kafka</strong>/<strong>ZooKeeper</strong> are starting fine, but the <strong>Schema Registry</strong> keeps failing (Note, I am behind a corporate VPN)</p>
  <p><a href="https://i.stack.imgur.com/lRGj1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lRGj1.png" alt="enter image description here" /></a></p>
  <p>The exception message in the SchemaRegistry logs is:</p>
  <pre><code>[2021-11-04 00:34:22,492] INFO Logging initialized @1403ms to org.eclipse.jetty.util.log.Slf4jLog (org.eclipse.jetty.util.log)
  [2021-11-04 00:34:22,543] INFO Initial capacity 128, increased by 64, maximum capacity 2147483647. (io.confluent.rest.ApplicationServer)
  [2021-11-04 00:34:22,614] INFO Adding listener: http://0.0.0.0:8081 (io.confluent.rest.ApplicationServer)
  [2021-11-04 00:35:23,007] ERROR Error starting the schema registry (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication)
  io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryException: Failed to get Kafka cluster ID
      at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.kafkaClusterId(KafkaSchemaRegistry.java:1488)
      at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.&lt;init&gt;(KafkaSchemaRegistry.java:166)
      at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.initSchemaRegistry(SchemaRegistryRestApplication.java:71)
      at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.configureBaseApplication(SchemaRegistryRestApplication.java:90)
      at io.confluent.rest.Application.configureHandler(Application.java:271)
      at io.confluent.rest.ApplicationServer.doStart(ApplicationServer.java:245)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
      at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:44)
  Caused by: java.util.concurrent.TimeoutException
      at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1784)
      at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
      at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:180)
      at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.kafkaClusterId(KafkaSchemaRegistry.java:1486)
      ... 7 more
  </code></pre>
  <p>My <code>schema-registry.properties</code> file has bootstrap URL set to</p>
  <pre><code>kafkastore.bootstrap.servers=PLAINTEXT://localhost:9092
  </code></pre>
  <p>I saw some posts saying its the SchemaRegistry unable to connect to the KafkaCluster URL because of the localhost address potentially. I am fairly new to Kafka and basically just need this local setup to run a git repo that is utilizing some Topics/Kafka so my questions...</p>
  <ol>
  <li>How can I fix this (I am behind a corporate VPN but I figured this shouldn't affect this)</li>
  <li>Do I even need the SchemaRegistry?</li>
  </ol>