confluentinc / kafka-rest

Confluent REST Proxy for Kafka
https://docs.confluent.io/current/kafka-rest/docs/index.html
Other
42 stars 644 forks source link

Need of kafkarest-env.sh #367

Open hkunhumveetil opened 6 years ago

hkunhumveetil commented 6 years ago

Open source projects like Hive, Hadoop, Spark has an env.sh file in which all the environment variables used by the program can be defined. A similar script is not available for Kafka REST services. This request is to have env.sh file in the Kafka Rest Conf directory to have

OneCricketeer commented 6 years ago

Can you give more suggestions to your proposal?

The environment variables are already being loaded by the run-class script.

https://github.com/confluentinc/kafka-rest/blob/master/bin/kafka-rest-run-class

For example, you are able to export KAFKAREST_OPTS in your own script prior to starting the server.