This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 332
Load the correct version of the schema into zipkin-cassandra #33
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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,3 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
echo "*** Adding Cassandra deb source" | ||
cat << EOF >> /etc/apt/sources.list | ||
deb http://www.apache.org/dist/cassandra/debian 21x main | ||
|
@@ -10,19 +14,25 @@ gpg --export --armor 749D6EEC0353B12C | apt-key add - | |
|
||
echo "*** Installing Cassandra" | ||
apt-get update | ||
apt-get install -y cassandra procps wget | ||
# adduser, python and python-support are dependencies of cassandra | ||
# we'll install cassandra without dependency checks to use the JRE 8 provided by the base image | ||
# otherwise it'd pull in JRE 7 | ||
apt-get install -y procps wget adduser python>=2.7 python-support>=0.90.0 | ||
apt-get download cassandra | ||
dpkg --force-depends -i cassandra*.deb | ||
rm cassandra*.deb | ||
|
||
echo "*** Starting Cassandra" | ||
sed -i s/Xss180k/Xss256k/ /etc/cassandra/cassandra-env.sh | ||
/usr/sbin/cassandra | ||
sleep 10 | ||
|
||
echo "*** Importing Scheme" | ||
wget https://raw.githubusercontent.com/openzipkin/zipkin/master/zipkin-cassandra-core/src/main/resources/cassandra-schema-cql3.txt | ||
wget https://raw.githubusercontent.com/openzipkin/zipkin/$ZIPKIN_VERSION/zipkin-cassandra-core/src/main/resources/cassandra-schema-cql3.txt | ||
cqlsh --debug -f cassandra-schema-cql3.txt localhost | ||
|
||
echo "*** Stopping Cassandra" | ||
killall java | ||
pkill -f java | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have |
||
|
||
mv /etc/cassandra/cassandra.yaml /etc/cassandra/cassandra.default.yaml | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the important part