Skip to content

Commit

Permalink
hornbill: update server command args
Browse files Browse the repository at this point in the history
  • Loading branch information
4eUeP committed Nov 14, 2024
1 parent 9053e9b commit 57870b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/main/scala/hstream/server/KafkaBroker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ class KafkaBroker(
val metaServerCmd =
s"""docker run -d --network host --name $metaServerContainerName -v $storeConfig:$storeConfig:ro
$image hornbill meta --host 127.0.0.1 --port $metaServerPort
--metrics-port 0
--backend $storeConfig
""".stripMargin.linesIterator.mkString(" ").trim
info(s"=> Start meta server by: $metaServerCmd")
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/scala/hstream/server/KafkaConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ object TestConfig {
}
}

// === spec 1: hstream
private def parseTestingConfig1(
brokerConfig: collection.mutable.Map[String, Object],
testingConfig: collection.mutable.Map[String, Object],
Expand Down Expand Up @@ -491,6 +492,7 @@ object TestConfig {
}
}

// === spec 2: hornbill
private def parseTestingConfig2(
brokerConfig: collection.mutable.Map[String, Object],
testingConfig: collection.mutable.Map[String, Object],
Expand Down Expand Up @@ -549,7 +551,8 @@ object TestConfig {
brokerConfig.foreach { case (k, v) => prop.put(k, v.toString) }
// testing config
val args = s"""--server-id $nodeId
--port $port --advertised-address $advertisedAddress
--listeners plaintext://0.0.0.0:$port
--advertised-listeners plaintext://$advertisedAddress:$port
--meta-servers http://127.0.0.1:$metaServerPort
--store-config $storeConfig
""".stripMargin.linesIterator.mkString(" ").trim
Expand Down

0 comments on commit 57870b9

Please sign in to comment.