Skip to content

Commit

Permalink
Set embedded Kafka server to use localhost as advertised name so it w…
Browse files Browse the repository at this point in the history
…orks under all network conditions (#130)
  • Loading branch information
glorat authored and simonsouter committed Feb 26, 2018
1 parent 1ce623b commit 04db6a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ object KafkaServer {
val defaultConfig: Map[String, String] = Map(
KafkaConfig.BrokerIdProp -> "1",
KafkaConfig.ReplicaSocketTimeoutMsProp -> "1500",
KafkaConfig.ControlledShutdownEnableProp -> "true"
KafkaConfig.ControlledShutdownEnableProp -> "true",
KafkaConfig.AdvertisedHostNameProp -> "localhost"
)

/**
Expand Down

0 comments on commit 04db6a6

Please sign in to comment.