To add a superuser on Cassandra, open a command terminal and type cqlsh. Once you edit the configuration, restart Cassandra to apply these changes: Ubuntu /etc/cassandra/cassandra.yamlĪuthenticator: .PasswordAuthenticatorĪuthorizer: .CassandraAuthorizer Now, match your items in the file based on your projects requirement and how you intend to use Cassandra. cp /etc/cassandra/cassandra.yaml /etc/cassandra/ To enable the login authentication for the user, create a backup of the configuration file on Cassandra i.e cassandra.yaml. In case of any faults, open the file named cassandra-env.sh in your editor file to resolve this error: vim /etc/cassandra/cassandra-env.sh Step 4: Configuring Cassandra If your cluster is functioning properly, you should see a UN display and an output that look like this: Status=Up/Down To activate Cassandra on your system and confirm it’s working, run the following command: systemctl enable cassandraĬheck to confirm the status of your Cassandra cluster: #Install cqlsh for cassandra 2.1 mac installsudo apt-get install cassandra Step 3: Activating Cassandra Gpg -export -armor 749D6EEC0353B12C | sudo apt-key add. To avoid errors, add a public key to your Cassandra repository file as shown below: gpg -keyserver -recv-keys 749D6EEC0353B12C echo "deb 36x main" | sudo tee -a /etc/apt//cassandra.list Ensure you add the software repository to verify that the package is available for your system. We shall use the official Cassandra package available on Apache Software Foundation. Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) Step 2: Downloading and Installing Cassandraĭownload the latest version of Apache Cassandra. Java(TM) SE Runtime Environment (build 1.8.0_101-b13) You should get an output like this: java version "1.8.0_101" Now install Java 8+ using the command below: sudo apt-get -y install oracle-java8-installerĬonfirm the Java version you have: java -version #Install cqlsh for cassandra 2.1 mac updateStart by running the following command: sudo add-apt-repository -y ppa:webupd8team/javaĮnsure your repository database is up-to-date by running the command below: sudo apt-get update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |