forked from dpkp/kafka-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download official binaries from apache.org for integration tests
- Loading branch information
Dana Powers
committed
Aug 13, 2014
1 parent
1908ee8
commit 7238e5a
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ build | |
dist | ||
MANIFEST | ||
env | ||
servers/*/kafka-bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
#!/bin/bash | ||
|
||
git submodule update --init | ||
(cd servers/0.8.0/kafka-src && ./sbt update package assembly-package-dependency) | ||
(cd servers/0.8.1/kafka-src && ./gradlew jar) | ||
#git submodule update --init | ||
#(cd servers/0.8.0/kafka-src && ./sbt update package assembly-package-dependency) | ||
#(cd servers/0.8.1/kafka-src && ./gradlew jar) | ||
|
||
SCALA_VERSION=2.8.0 | ||
KAFKA_VERSIONS="0.8.0 0.8.1 0.8.1.1" | ||
pushd servers | ||
mkdir -p dist | ||
pushd dist | ||
for kafka in $KAFKA_VERSIONS; do | ||
echo "-------------------------------------" | ||
echo "Checking kafka binaries for v${kafka}" | ||
echo | ||
wget -N https://archive.apache.org/dist/kafka/$kafka/kafka_${SCALA_VERSION}-${kafka}.tgz || wget -N https://archive.apache.org/dist/kafka/$kafka/kafka_${SCALA_VERSION}-${kafka}.tar.gz | ||
echo | ||
if [ ! -d "../$kafka/kafka-bin" ]; then | ||
echo "Extracting kafka binaries for v${kafka}" | ||
tar xzvf kafka_${SCALA_VERSION}-${kafka}.t* -C ../$kafka/ | ||
mv ../$kafka/kafka_${SCALA_VERSION}-${kafka} ../$kafka/kafka-bin | ||
else | ||
echo "$kafka/kafka-bin directory already exists -- skipping tgz extraction" | ||
fi | ||
echo | ||
done | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters