Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Uptade kafka to version 2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
henrque committed May 29, 2023
1 parent 986fde2 commit fad3893
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 34 deletions.
4 changes: 2 additions & 2 deletions autogen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@
<profile>
<id>scala2.11</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
<property>
Expand Down
6 changes: 3 additions & 3 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<id>scala2.10</id>
<properties>
<scala.version>2.10.4</scala.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.binary.version>2.10</scala.binary.version>
</properties>
<activation>
<property>
Expand All @@ -129,8 +129,8 @@
<profile>
<id>scala2.11</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
<property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ class KafkaCollector(
outputFileWriter.append(header)
}
val time = new Date(System.currentTimeMillis()).toString
val count = histogram.getCount
val snapshot = histogram.getSnapshot
val countValue = histogram.getCount
val throughput = countValue * 1000 / (maxTime - minTime)
val throughput = count * 1000 / (maxTime - minTime)
outputFileWriter.append(
s"$time,$countValue,$throughput," +
s"$time,$count,$throughput," +
s"${formatDouble(snapshot.getMax)}," +
s"${formatDouble(snapshot.getMean)}," +
s"${formatDouble(snapshot.getMin)}," +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intel.hibench.common.streaming.metrics

import com.intel.hibench.common.streaming.Platform
Expand Down
4 changes: 2 additions & 2 deletions flinkbench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<profile>
<id>defaultScalaVersion</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
Expand All @@ -70,7 +70,7 @@
<profile>
<id>scala2.11</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
Expand Down
4 changes: 2 additions & 2 deletions gearpumpbench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<profile>
<id>defaultScalaVersion</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
Expand All @@ -67,7 +67,7 @@
<profile>
<id>scala2.11</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
Expand Down
24 changes: 9 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@
</properties>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>27.0-jre</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down Expand Up @@ -117,19 +112,18 @@
</modules>
</profile>

<!-- <profile>
<profile>
<id>flinkbench</id>
<modules>
<module>flinkbench</module>
</modules>
</profile> -->

<!-- <profile>
</profile>
<profile>
<id>gearpumpbench</id>
<modules>
<module>gearpumpbench</module>
</modules>
</profile> -->
</profile>

<profile>
<id>hadoopbench</id>
Expand All @@ -138,21 +132,21 @@
</modules>
</profile>

<!-- <profile>
<profile>
<id>stormbench</id>
<modules>
<module>stormbench</module>
</modules>
</profile> -->
</profile>

<profile>
<id>defaultbench</id>
<modules>
<module>sparkbench</module>
<!-- <module>flinkbench</module> -->
<!-- <module>gearpumpbench</module> -->
<module>flinkbench</module>
<module>gearpumpbench</module>
<module>hadoopbench</module>
<!-- <module>stormbench</module> -->
<module>stormbench</module>
</modules>
<activation>
<property>
Expand Down
6 changes: 3 additions & 3 deletions sparkbench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<profile>
<id>spark2.4</id>
<properties>
<spark.version>2.4.3</spark.version>
<spark.version>2.4.0</spark.version>
<spark.bin.version>2.4</spark.bin.version>
</properties>
<activation>
Expand Down Expand Up @@ -200,8 +200,8 @@
<profile>
<id>scala2.11</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
<property>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intel.hibench.sparkbench.streaming

import com.intel.hibench.common.HiBenchConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ case class SparkBenchConfig (
ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG -> brokerList,
ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG -> classOf[StringDeserializer],
ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG -> classOf[StringDeserializer],
ConsumerConfig.AUTO_OFFSET_RESET_CONFIG -> "earliest",
// Other Kafka configuration properties...
)

def threadsPerReceiver = coreNumber / receiverNumber
Expand Down
4 changes: 2 additions & 2 deletions stormbench/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<profile>
<id>defaultScalaVersion</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
Expand All @@ -65,7 +65,7 @@
<profile>
<id>scala2.11</id>
<properties>
<scala.version>2.12.17</scala.version>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
</properties>
<activation>
Expand Down

0 comments on commit fad3893

Please sign in to comment.