$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Cassandra Installation in Fedora 35 – Step-by-step

February 16, 2023 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading Cassandra

    Download Latest Apache Cassandra Release:

    Apache Cassandra tar.gz

    Save the File.

  2. 3. Setting Up Cassandra

    So now Make Directories
    With:

    sudo mkdir -p /var/log/cassandra/log

    And:

    sudo mkdir -p /var/lib/cassandra/{data,saved_caches,commitlog}

    Creating cassandra User and Group and Adding Users
    Run one by one:

    sudo groupadd cassandra
    sudo useradd cassandra -g cassandra

    And to enable Login Set a Password with:

    sudo passwd cassandra

    Setting Ownership over Directories.

    sudo chown -R cassandra:cassandra /var/lib/cassandra/
    sudo chown -R cassandra:cassandra /var/log/cassandra/

    Set Permissions over Directories.

    sudo chmod 775 /var/lib/cassandra/data/
    sudo chmod 775 /var/lib/cassandra/saved_caches/
    sudo chmod 770 /var/lib/cassandra/commitlog/
    sudo chmod 770 /var/log/cassandra/log/
  3. 3. Installing Cassandra

    Then to Install Cassandra in Fedora
    First, access the Download location by default with:

    cd ~/Downloads

    To Check it’s there List the contents with:

    sudo ls . | grep apache-cassandra

    The grep Command refine the output List showing only the Entries matching the Keyword.
    But if you are in Trouble to Find it out on Terminal then See: How to Access Downloads Folder from Browser.
    Then Extract the Archive directly into Target directory with:

    sudo tar xvzf ./apache-cassandra*.tar.gz -C /opt/

    Now for ease Rename the folder as:

    sudo mv /opt/apache-cassandra* /opt/apache-cassandra

    Again Set the SuperUser as Owner:

    sudo chown -R cassandra:cassandra /opt/apache-cassandra

    Finally, amend the User’s Path:

    echo 'export PATH=$PATH:/opt/apache-cassandra/bin' >> ~/.bashrc

    To Reload it simply run:

    bash
  4. 5. Configuring Cassandra

    Edit Cassandra Configuration File
    With nano Editor:

    cd /opt/apache-cassandra
    sudo nano conf/cassandra.yaml

    Then Search and Comment Out:
    (Ctrl+w to Search on nano)

    #cluster_name: 'Test Cluster'

    Since no Cluster is made…

    Last, Set Cassandra Log4j Directory

    sudo nano conf/log4j-server.properties

    Append:

    log4j.appender.R.file=/var/lib/cassandra/log/system.log
  5. 6. Installing Oracle JDK

    Required Oracle-Sun Official Java JDK for Fedora

    Oracle JDK Installation for Fedora

    Please be aware that Cassandra 4 support only Java 8 &.

Contents