-
Notifications
You must be signed in to change notification settings - Fork 103
Blueflood on OSX
TODO: Move the first part of this page to the 10 Minute Guide as a quick way to get started. Move the installation instructions to Deployment Dependencies, probably. That's where all the other installation instructions are, although a "Dev dependencies" page might be more appropriate.
ARCHIVE: These are old instructions. See Installing From Source instead.
These instructions will get Blueflood set up as a demo with the latest Blueflood release.
-
Get the latest jar
curl -s -L https://github.com/rackerlabs/blueflood/releases/latest | egrep -o 'rackerlabs/blueflood/releases/download/rax-release-.*/blueflood-all-.*-jar-with-dependencies.jar' | xargs -I % curl -C - -L https://github.com/% --create-dirs -o blueflood-all/target/blueflood-all-2.0.0-SNAPSHOT-jar-with-dependencies.jar
-
Get various scripts and config files
### blueflood-start.sh curl -s https://raw.githubusercontent.com/rackerlabs/blueflood/master/bin/blueflood-start.sh --create-dirs -o bin/blueflood-start.sh ### blueflood.conf curl -s https://raw.githubusercontent.com/rackerlabs/blueflood/master/demo/local/config/blueflood.conf --create-dirs -o ./demo/local/config/blueflood.conf ### blueflood-log4j.properties curl -s https://raw.githubusercontent.com/rackerlabs/blueflood/master/demo/local/config/blueflood-log4j.properties --create-dirs -o demo/local/config/blueflood-log4j.properties ### load.script curl -s -O https://raw.githubusercontent.com/rackerlabs/blueflood/enums-feature/src/cassandra/cli/load.cdl
-
Make blueflood-start.sh executable
chmod +x bin/blueflood-start.sh
See our page 'setup elasticsearch' for full instructions on setting up Elasticsearch.
We recommend using homebrew (http://brew.sh) to install Cassandra.
-
Install Cassandra
brew update brew install cassandra
-
Turn on RPC server
sed -i 's/start_rpc: true/start_rpc: false/g' /usr/local/etc/cassandra/cassandra.yaml
-
Start automatically and start server
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
-
Load the Cassandra schema
cqlsh -f load.cdl
-
Yep. Start it!
bin/blueflood-start.sh
Try it all out by sending and querying some metrics! Check out the 10-minute guide for some examples.
We used the latest release jar just to simplify things a bit. Now that you have all the bits working on OSX, you might want to check out the code at https://github.com/rackerlabs/blueflood, make some changes and compile Blueflood from source.