Skip to content

Instantly share code, notes, and snippets.

@girisagar46
Forked from hkhamm/installing_cassandra.md
Created February 17, 2022 15:08
Show Gist options
  • Save girisagar46/659082087777351b93b00b9a29b9ba5d to your computer and use it in GitHub Desktop.
Save girisagar46/659082087777351b93b00b9a29b9ba5d to your computer and use it in GitHub Desktop.

Revisions

  1. @hkhamm hkhamm revised this gist Aug 5, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing_cassandra.md
    Original file line number Diff line number Diff line change
    @@ -56,7 +56,7 @@ launchctl: Couldn't stat("/Users/<user>/Library/LaunchAgents/homebrew.mxcl.cassa
    To fix this just issue the following command. Then, try using the `launchctl load` command again:
    ```Shell
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    cp /usr/local/Cellar/cassandra/<version number>/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```
    Cassandra file locations
  2. @hkhamm hkhamm revised this gist Jul 6, 2014. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions installing_cassandra.md
    Original file line number Diff line number Diff line change
    @@ -5,57 +5,57 @@ Install Homebrew
    ----------------
    Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

    ```sh
    ```Shell
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    Install Python
    --------------
    Mac OS X has a copy of Python preinstalled, but this makes sure you get the newest version.

    ```sh
    ```Shell
    brew install python
    ```

    Install cql
    -----------
    To use cqlsh, the Cassandra query language shell, you need to install cql:

    ```
    ```Shell
    pip install cql
    ```

    Install Cassandra
    -----------------
    This installs Apache Cassandra:

    ```sh
    ```Shell
    brew install cassandra
    ```

    Starting/Stopping Cassandra
    ---------------------------
    Use this command to start Cassandra:

    ```sh
    ```Shell
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    Use this command to stop Cassandra:

    ```sh
    ```Shell
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gives this error message:

    ```sh
    ```Shell
    launchctl: Couldn't stat("/Users/<user>/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```
    To fix this just issue the following command. Then, try using the `launchctl load` command again:
    ```sh
    ```Shell
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```
  3. @hkhamm hkhamm revised this gist Jul 6, 2014. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions installing_cassandra.md
    Original file line number Diff line number Diff line change
    @@ -5,15 +5,15 @@ Install Homebrew
    ----------------
    Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

    ```
    ```sh
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    Install Python
    --------------
    Mac OS X has a copy of Python preinstalled, but this makes sure you get the newest version.

    ```
    ```sh
    brew install python
    ```

    @@ -29,33 +29,33 @@ Install Cassandra
    -----------------
    This installs Apache Cassandra:

    ```
    ```sh
    brew install cassandra
    ```

    Starting/Stopping Cassandra
    ---------------------------
    Use this command to start Cassandra:

    ```
    ```sh
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    Use this command to stop Cassandra:

    ```
    ```sh
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gives this error message:

    ```
    ```sh
    launchctl: Couldn't stat("/Users/<user>/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```
    To fix this just issue the following command. Then, try using the `launchctl load` command again:
    ```
    ```sh
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```
  4. @hkhamm hkhamm revised this gist Jul 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing_cassandra.md
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,7 @@ launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    On Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gives this error message:

    ```
    launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    launchctl: Couldn't stat("/Users/<user>/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```

    To fix this just issue the following command. Then, try using the `launchctl load` command again:
  5. @hkhamm hkhamm revised this gist Jul 1, 2014. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions installing_cassandra.md
    Original file line number Diff line number Diff line change
    @@ -65,4 +65,9 @@ Cassandra file locations
    - Logs: `/usr/local/var/log/cassandra`
    - Data: `/usr/local/var/lib/cassandra/data`

    Links
    -----
    - [Apache Cassandra] (http://cassandra.apache.org/)
    - [Datastax Cassandra Documentation] (http://www.datastax.com/documentation/cassandra/2.0/cassandra/gettingStartedCassandraIntro.html)

    Have fun with Cassandra!
  6. @hkhamm hkhamm revised this gist Jul 1, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions installing_cassandra.md
    Original file line number Diff line number Diff line change
    @@ -61,8 +61,8 @@ cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAge

    Cassandra file locations
    ------------------------
    Properties: `/usr/local/etc/cassandra`
    Logs: `/usr/local/var/log/cassandra`
    Data: `/usr/local/var/lib/cassandra/data`
    - Properties: `/usr/local/etc/cassandra`
    - Logs: `/usr/local/var/log/cassandra`
    - Data: `/usr/local/var/lib/cassandra/data`

    Have fun with Cassandra!
  7. @hkhamm hkhamm renamed this gist Jul 1, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. @hkhamm hkhamm revised this gist Jul 1, 2014. 1 changed file with 12 additions and 3 deletions.
    15 changes: 12 additions & 3 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -4,56 +4,65 @@ Installing Cassandra on Mac OS X
    Install Homebrew
    ----------------
    Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

    ```
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    Install Python
    --------------
    Mac OS X has a copy of Python preinstalled, but this makes sure you get the newest version.

    ```
    brew install python
    ```

    Install cql
    -----------
    To use cqlsh, the Cassandra query language shell, you need to install cql:

    ```
    pip install cql
    ```

    Install Cassandra
    -----------------
    This installs Apache Cassandra:

    ```
    brew install cassandra
    ```

    Starting/Stopping Cassandra
    ---------------------------
    Use this command to start Cassandra:

    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    Use this command to stop Cassandra:

    ```
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gives this error message:

    ```
    launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```

    To fix this just issue the following command. Then, try using the `launchctl load` command again:

    ```
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```

    Cassandra file locations
    ------------------------
    Properties: /usr/local/etc/cassandra
    Logs: /usr/local/var/log/cassandra
    Data: /usr/local/var/lib/cassandra/data
    Properties: `/usr/local/etc/cassandra`
    Logs: `/usr/local/var/log/cassandra`
    Data: `/usr/local/var/lib/cassandra/data`

    Have fun with Cassandra!
  9. @hkhamm hkhamm revised this gist Jul 1, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ On Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gi
    launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```

    To fix this just issue the following command. Then, try using the ```launchctl load``` command again:
    To fix this just issue the following command. Then, try using the `launchctl load` command again:
    ```
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```
  10. @hkhamm hkhamm revised this gist Jul 1, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,7 @@ Use this command to stop Cassandra:
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    On Mavericks, Homebrew failed to move the plist file into LaunchAgents, which gives this error message:
    ```
    launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```
  11. @hkhamm hkhamm revised this gist Jul 1, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -31,11 +31,11 @@ brew install cassandra

    Starting/Stopping Cassandra
    ---------------------------
    Use this command to start:
    Use this command to start Cassandra:
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```
    user this command to stop:
    Use this command to stop Cassandra:
    ```
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```
  12. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ brew install cassandra
    ```

    Starting/Stopping Cassandra
    ------------------
    ---------------------------
    Use this command to start:
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
  13. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -29,12 +29,16 @@ This installs Apache Cassandra:
    brew install cassandra
    ```

    Starting Cassandra
    Starting/Stopping Cassandra
    ------------------
    At the end of the install, brew will tell you about two ways to launch Cassandra. The first will launch it when the computer restarts, but this isn't recommended because you may not want to always run Cassandra. Instead use this command:
    Use this command to start:
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```
    user this command to stop:
    ```
    launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    ```
  14. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 0 additions and 8 deletions.
    8 changes: 0 additions & 8 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -35,14 +35,6 @@ At the end of the install, brew will tell you about two ways to launch Cassandra
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```
    Or even easier:
    ```
    launchctl start homebrew.mxcl.cassandra
    ```
    and to stop:
    ```
    launchctl stop homebrew.mxcl.cassandra
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    ```
  15. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -35,6 +35,14 @@ At the end of the install, brew will tell you about two ways to launch Cassandra
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```
    Or even easier:
    ```
    launchctl start homebrew.mxcl.cassandra
    ```
    and to stop:
    ```
    launchctl stop homebrew.mxcl.cassandra
    ```

    On Mavericks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    ```
  16. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,6 @@ Mac OS X has a copy of Python preinstalled, but this makes sure you get the newe
    brew install python
    ```


    Install cql
    -----------
    To use cqlsh, the Cassandra query language shell, you need to install cql:
  17. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ brew install cassandra

    Starting Cassandra
    ------------------
    At the end of the install brew will tell you about two ways to launch Cassandra. The first will launch it when the computer restarts, but this isn't recommended because you may not want to always run Cassandra. Instead use this command:
    At the end of the install, brew will tell you about two ways to launch Cassandra. The first will launch it when the computer restarts, but this isn't recommended because you may not want to always run Cassandra. Instead use this command:
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```
    @@ -47,4 +47,10 @@ To fix this just issue the following command. Then, try using the ```launchctl l
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```

    Cassandra file locations
    ------------------------
    Properties: /usr/local/etc/cassandra
    Logs: /usr/local/var/log/cassandra
    Data: /usr/local/var/lib/cassandra/data

    Have fun with Cassandra!
  18. @hkhamm hkhamm revised this gist Jun 30, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -37,12 +37,12 @@ At the end of the install brew will tell you about two ways to launch Cassandra.
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavricks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    On Mavericks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    ```
    launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```

    To fix this just issue the following command and try using the ```launchctl load``` command again:
    To fix this just issue the following command. Then, try using the ```launchctl load``` command again:
    ```
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```
  19. @hkhamm hkhamm created this gist Jun 30, 2014.
    50 changes: 50 additions & 0 deletions installing_cassandra
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    Installing Cassandra on Mac OS X
    ================================

    Install Homebrew
    ----------------
    Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
    ```
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    Install Python
    --------------
    Mac OS X has a copy of Python preinstalled, but this makes sure you get the newest version.
    ```
    brew install python
    ```


    Install cql
    -----------
    To use cqlsh, the Cassandra query language shell, you need to install cql:
    ```
    pip install cql
    ```

    Install Cassandra
    -----------------
    This installs Apache Cassandra:
    ```
    brew install cassandra
    ```

    Starting Cassandra
    ------------------
    At the end of the install brew will tell you about two ways to launch Cassandra. The first will launch it when the computer restarts, but this isn't recommended because you may not want to always run Cassandra. Instead use this command:
    ```
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.cassandra.plist
    ```

    On Mavricks, Homebrew failed to move the plist file into LaunchAgents. Which gives this error message:
    ```
    launchctl: Couldn't stat("/Users/MNCH/Library/LaunchAgents/homebrew.mxcl.cassandra.plist"): No such file or directory
    ```

    To fix this just issue the following command and try using the ```launchctl load``` command again:
    ```
    cp /usr/local/Cellar/cassandra/homebrew.mxcl.cassandra.plist ~/Library/LaunchAgents/
    ```

    Have fun with Cassandra!