How to set pssword based authentication in cassandra

0 votes

Hi Guys,

I have my data in cassandra. But in my current situation anyone can login in my cassandra accout. How can I secure my data in cassandra?

Thank You

Apr 1, 2020 in Big Data Hadoop by akhtar
• 38,260 points
694 views

1 answer to this question.

0 votes

Hi@akhtar,

You can set password to your cassandra account.

Follow the below given steps.

  • Open the cassandra.yaml file.
  • Replace the below lines.
authenticator value is 'AllowAllAuthenticator'. Change this authenticator value from 'AllowAllAuthenticator' to 'com.datastax.bdp.cassandra.auth.PasswordAuthenticator'. 
authorizer value will be 'AllowAllAuthorizor'. Change this authorizer value from 'AllowAllAuthorizor' to 'com.datastax.bdp.cassandra.auth.CassandraAuthorizor'.
  • Login with username and password as cassandra.

$ cqlsh -3 localhost -u cassandra -p cassandra
  • Change your password.

$ alter user cassandra with password 'newpassword';

Hope this will work.
Thank You

answered Apr 1, 2020 by MD
• 95,460 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to set authentication for Kerberos in Hue?

To set the authentication for Solr clients ...READ MORE

answered May 27, 2019 in Big Data Hadoop by Jimmy
801 views
+1 vote
0 answers

How to set up Hadoop cluster on Mac in intelliJ IDEA

I have Installed hadoop using brew and ...READ MORE

Jul 25, 2018 in Big Data Hadoop by Neha
• 6,300 points
1,085 views
0 votes
1 answer

How to set mapping to java in sqoop?

Hey @Chris, to set the mapping to ...READ MORE

answered May 15, 2019 in Big Data Hadoop by Reshma
1,369 views
0 votes
1 answer

How to set Zookeeper server for Accumulo in sqoop?

Hi. To mention the Zookeeper server in ...READ MORE

answered May 17, 2019 in Big Data Hadoop by Kumar
879 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
11,029 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,536 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,832 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
4,612 views
+1 vote
2 answers

How to find previous records from a data set in Pig??

Hi, You can use ToDate() and SubtractDuration() function ...READ MORE

answered Jan 23, 2020 in Big Data Hadoop by MD
• 95,460 points
1,425 views
0 votes
2 answers

How to set properties for secondary namenode in Hadoop?

Secondary NameNode in HDFS Secondary NameNode in Hadoop ...READ MORE

answered Mar 31, 2020 in Big Data Hadoop by anonymous
4,279 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP