lensesio / kafka-topics-ui

Web Tool for Kafka Topics |
https://lenses.io
877 stars 148 forks source link

When kafka-rest.properties is updated and restarted changes are lost #126

Closed DivyaPraveen closed 6 years ago

DivyaPraveen commented 6 years ago

I am trying to configure rest-proxy outside of the docker container and is getting connectivity error. As mentioned in the READ.me I tried adding the following to kafka-rest.properties

access.control.allow.methods=GET,POST,PUT,DELETE,OPTIONS
access.control.allow.origin=*

But when I restart the docker image the changes are lost. Does anyone faced this issue?

I am able to configure the kafka-topics ui by placing it with in the network of the other kafka docker instances. But I need to know how is it accessible from outside the network as I need this to configure to dev environments.

cluster set up added like this:

var clusters = [
  {
    NAME: 'local',
    KAFKA_REST: 'http://rest-proxy:8082',
    MAX_BYTES: '50000', // Sets the default maximum amount of bytes to fetch from each topic
    RECORD_POLL_TIMEOUT: '3000',
    COLOR: '#141414', // Optional
    DEBUG_LOGS_ENABLED: true
  },
  {
    NAME: 'dev',
    KAFKA_REST: 'http://dev-ip:8082',
    MAX_BYTES: '50000',
    COLOR: 'red',
    RECORD_POLL_TIMEOUT: '3000',
    DEBUG_LOGS_ENABLED: true
  }
];

Really appreciate a response. Thanks in advance

DivyaPraveen commented 6 years ago

I was able to resolve the Connectivity issue by adding allow-control-allow-origin extension to chrome

(https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en-US)