<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Graph Store &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/graph-store/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 26 Apr 2018 18:33:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>NoSQL: Create user defined type in Cassandra</title>
		<link>https://www.dbrnd.com/2017/04/nosql-create-user-defined-type-in-cassandra/</link>
					<comments>https://www.dbrnd.com/2017/04/nosql-create-user-defined-type-in-cassandra/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 04 Apr 2017 16:16:06 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[frozen]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<category><![CDATA[user defined data type]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2756</guid>

					<description><![CDATA[In this post, I am sharing small demonstration to create CQL User Defined Data Type in Cassandra. Using user defined data types, you can handle multiple fields into one user-defined column. For example, You can create user-defined data type for Address related columns, in which you can specify a Street name, City name, Pincode, etc. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&amp;linkname=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&amp;linkname=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&amp;linkname=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&amp;linkname=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&amp;linkname=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&amp;linkname=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F04%2Fnosql-create-user-defined-type-in-cassandra%2F&#038;title=NoSQL%3A%20Create%20user%20defined%20type%20in%20Cassandra" data-a2a-url="https://www.dbrnd.com/2017/04/nosql-create-user-defined-type-in-cassandra/" data-a2a-title="NoSQL: Create user defined type in Cassandra"></a></p><p>In this post, I am sharing small demonstration to create CQL User Defined Data Type in Cassandra. </p>
<p>Using user defined data types, you can handle multiple fields into one user-defined column.<br />
For example, You can create user-defined data type for Address related columns, in which you can specify a Street name, City name, Pincode, etc. </p>
<p><strong>Create Keyspace if not exists:</strong></p>
<pre class="crayon-plain-tag">CREATE KEYSPACE IF NOT EXISTS dbrnd WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};</pre> </p>
<p><strong>Use a Keyspace:</strong></p>
<pre class="crayon-plain-tag">USE dbrnd;</pre> </p>
<p><strong>Create user defined data type:</strong></p>
<pre class="crayon-plain-tag">CREATE TYPE dbrnd.EmployeeAddress
(
    StreetName TEXT
    ,CityName TEXT
    ,ZipCode INT
);</pre> </p>
<p><strong>Create sample table:</strong><br />
frozen <user defined data type> is require to define a column. </p>
<pre class="crayon-plain-tag">CREATE TABLE dbrnd.tbl_EmployeeInfo
(
    EmpID INT PRIMARY KEY
    ,EmpName VARCHAR
    ,EmpAddress frozen&lt;EmployeeAddress&gt;
);</pre> </p>
<p><strong>Insert sample records:</strong></p>
<pre class="crayon-plain-tag">INSERT INTO dbrnd.tbl_EmployeeInfo 
(EmpID,EmpName,EmpAddress)
VALUES
(1,'Anvesh',{StreetName:'Kondapuar', CityName:'Hyderabad', ZipCode:580084});

INSERT INTO dbrnd.tbl_EmployeeInfo 
(EmpID,EmpName,EmpAddress)
VALUES
(2,'Neevan',{StreetName:'Hilldrive', CityName:'Bhavnagar', ZipCode:364002});</pre> </p>
<p><strong>Select properties of User defined data type column:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; SELECT EmpAddress.StreetName FROM dbrnd.tbl_EmployeeInfo;

@ Row 1
-----------------------+-----------
 empaddress.streetname | Kondapuar

@ Row 2
-----------------------+-----------
 empaddress.streetname | Hilldrive

(2 rows)</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2017/04/nosql-create-user-defined-type-in-cassandra/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>NoSQL: Cassandra Batch to execute multiple Statements</title>
		<link>https://www.dbrnd.com/2017/01/nosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 10 Jan 2017 19:42:37 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[apply batch]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[begin batch]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2750</guid>

					<description><![CDATA[In this post, I am sharing basic help to execute multiple statements using one single Cassandra batch. Many times, it is required to execute multiple statements using single batch. Cassandra CQL provides the BEGIN BATCH&#8230;APPLY BATCH command to execute multiple statements. Below is a small demonstration: Create Keyspace if not exists: [crayon-6ab4661ca96a9818444784/] Use a Keyspace: [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&amp;linkname=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&amp;linkname=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&amp;linkname=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&amp;linkname=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&amp;linkname=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&amp;linkname=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F01%2Fnosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch%2F&#038;title=NoSQL%3A%20Cassandra%20Batch%20to%20execute%20multiple%20Statements" data-a2a-url="https://www.dbrnd.com/2017/01/nosql-cassandra-batch-to-execute-multiple-statements-begin-batch-apply-batch/" data-a2a-title="NoSQL: Cassandra Batch to execute multiple Statements"></a></p><p>In this post, I am sharing basic help to execute multiple statements using one single Cassandra batch.</p>
<p>Many times, it is required to execute multiple statements using single batch.<br />
Cassandra CQL provides the BEGIN BATCH&#8230;APPLY BATCH command to execute multiple statements.</p>
<p><strong>Below is a small demonstration:</strong></p>
<p><strong>Create Keyspace if not exists:</strong><br />
<pre class="crayon-plain-tag">CREATE KEYSPACE IF NOT EXISTS dbrnd WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};</pre>
<strong>Use a Keyspace:</strong><br />
<pre class="crayon-plain-tag">USE dbrnd;</pre>
<strong>Create a Sample Table:</strong><br />
<pre class="crayon-plain-tag">CREATE TABLE IF NOT EXISTS tbl_Employee 
(
  EmpID INT PRIMARY KEY
  ,EmpFirstName VARCHAR
  ,EmpLastName VARCHAR
  ,EmpSalary INT
);</pre>
<strong>Insert few sample records:</strong><br />
<pre class="crayon-plain-tag">INSERT INTO tbl_Employee 
(EmpID,EmpFirstName,EmpLastName,EmpSalary)
VALUES
(1,'Anvesh','Patel',50000);

INSERT INTO tbl_Employee 
(EmpID,EmpFirstName,EmpLastName,EmpSalary)
VALUES
(2,'Neevan','Patel',150000);</pre>
<strong>Execute INSERT, UPDATE, DELETE using one Single Batch command:</strong><br />
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; 
    begin batch
         INSERT INTO tbl_Employee
         (EmpID,EmpFirstName,EmpLastName,EmpSalary)
         VALUES
         (3,'Meera','Patel',80000);
         UPDATE tbl_Employee SET EmpFirstName ='Martin' WHERE EmpID=2;
         
         DELETE FROM tbl_Employee WHERE EmpID=3;
    apply batch;</pre>
<strong>Check the result:</strong><br />
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; SELECT *FROM tbl_Employee;

@ Row 1
--------------+--------
 empid        | 1
 empfirstname | Anvesh
 emplastname  | Patel
 empsalary    | 50000

@ Row 2
--------------+--------
 empid        | 2
 empfirstname | Martin
 emplastname  | Patel
 empsalary    | 150000

(2 rows)</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>NoSQL: Important System Tables of the Cassandra</title>
		<link>https://www.dbrnd.com/2016/07/nosql-important-system-tables-of-the-cassandra/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 29 Jul 2016 21:05:04 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[system_auth]]></category>
		<category><![CDATA[system_schema]]></category>
		<category><![CDATA[system_traces]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2772</guid>

					<description><![CDATA[In this post, I am sharing an important list of Cassandra System Tables. Cassandra DBA can use these tables for a different investigation like, Schema information, Roles information, Tracing information and others. There are different keyspaces are available like, system, system_auth, system_schema, system_traces. system_auth Keyspace: [crayon-6ab4661ca976c903210922/] system_schema Keyspace: [crayon-6ab4661ca976d673505612/] system_traces Keyspace: [crayon-6ab4661ca976e194490701/] system Keyspace: [crayon-6ab4661ca976f601556332/]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&amp;linkname=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&amp;linkname=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&amp;linkname=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&amp;linkname=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&amp;linkname=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&amp;linkname=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F07%2Fnosql-important-system-tables-of-the-cassandra%2F&#038;title=NoSQL%3A%20Important%20System%20Tables%20of%20the%20Cassandra" data-a2a-url="https://www.dbrnd.com/2016/07/nosql-important-system-tables-of-the-cassandra/" data-a2a-title="NoSQL: Important System Tables of the Cassandra"></a></p><p>In this post, I am sharing an important list of Cassandra System Tables.</p>
<p>Cassandra DBA can use these tables for a different investigation like, Schema information, Roles information, Tracing information and others.</p>
<p>There are different keyspaces are available like, system, system_auth, system_schema, system_traces.</p>
<p><strong>system_auth Keyspace:</strong><br />
<pre class="crayon-plain-tag">SELECT *FROM system_auth.roles;
SELECT *FROM system_auth.role_permissions;</pre>
<strong>system_schema Keyspace:</strong><br />
<pre class="crayon-plain-tag">SELECT *FROM system_schema.views;
SELECT *FROM system_schema.types;
SELECT *FROM system_schema.triggers;
SELECT *FROM system_schema.tables;
SELECT *FROM system_schema.keyspaces;
SELECT *FROM system_schema.indexes;
SELECT *FROM system_schema.functions;
SELECT *FROM system_schema.columns;
SELECT *FROM system_schema.dropped_columns;
SELECT *FROM system_schema.aggregates;</pre>
<strong>system_traces Keyspace:</strong><br />
<pre class="crayon-plain-tag">SELECT *FROM system_traces.sessions;
SELECT *FROM system_traces.events;</pre>
<strong>system Keyspace:</strong><br />
<pre class="crayon-plain-tag">SELECT *FROM system.available_ranges;
SELECT *FROM system.peers;
SELECT *FROM system.peer_events;
SELECT *FROM system.batchlog;
SELECT *FROM system.batches;</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>NoSQL: Cassandra Important CQL shell commands</title>
		<link>https://www.dbrnd.com/2016/05/nosql-cassandra-important-cql-shell-commands/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 10 May 2016 19:36:54 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2747</guid>

					<description><![CDATA[In this post, I am sharing a list of important CQL shell commands of the Cassandra. Get the help of all commands: [crayon-6ab4661ca97f9972746382/] Check the host and version: [crayon-6ab4661ca97fa601928941/] Check the cluster information: [crayon-6ab4661ca97fb724425493/] Check the keyspaces: [crayon-6ab4661ca97fc354358598/] Check the user defined tables: [crayon-6ab4661ca97fd160681044/] Check the user defined types: [crayon-6ab4661ca97fe537445068/] Check the consistency level: [crayon-6ab4661ca97ff314597981/] [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&amp;linkname=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&amp;linkname=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&amp;linkname=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&amp;linkname=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&amp;linkname=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&amp;linkname=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-important-cql-shell-commands%2F&#038;title=NoSQL%3A%20Cassandra%20Important%20CQL%20shell%20commands" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-cassandra-important-cql-shell-commands/" data-a2a-title="NoSQL: Cassandra Important CQL shell commands"></a></p><p>In this post, I am sharing a list of important CQL shell commands of the Cassandra. </p>
<p><strong>Get the help of all commands:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; help</pre> </p>
<p><strong>Check the host and version:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; show host
Connected to Test Cluster at 127.0.0.1:9042.
cassandra@cqlsh:dbrnd&gt; show version
[cqlsh 5.0.1 | Cassandra 3.5 | CQL spec 3.4.0 | Native protocol v4]</pre> </p>
<p><strong>Check the cluster information:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; describe cluster;

Cluster: Test Cluster
Partitioner: Murmur3Partitioner

Range ownership:
                     7198801157164107876  [127.0.0.1]
                    -6388269565477727734  [127.0.0.1]
                      -13424558412243369  [127.0.0.1]</pre> </p>
<p><strong>Check the keyspaces:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; describe keyspaces;

tutorialspoint  system_auth  dbrnd               test
system_schema   system       system_distributed  system_traces</pre> </p>
<p><strong>Check the user defined tables:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; describe tables;

tbl_employee  tbl_department  users</pre> </p>
<p><strong>Check the user defined types:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; describe types

sports_details sport</pre> </p>
<p><strong>Check the consistency level:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; consistency
Current consistency level is ONE.</pre> </p>
<p><strong>Make your table output expanded:</strong></p>
<pre class="crayon-plain-tag">cassandra@cqlsh:dbrnd&gt; expand on
Now Expanded output is enabled
cassandra@cqlsh:dbrnd&gt; select *from tbl_employee;

@ Row 1
--------------+--------
 empid        | 1
 empfirstname | Anvesh
 emplastname  | Patel
 empsalary    | 50000

@ Row 2
--------------+--------
 empid        | 2
 empfirstname | Neevan
 emplastname  | Patel
 empsalary    | 150000

(2 rows)</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>NoSQL: Cassandra default list of port usage</title>
		<link>https://www.dbrnd.com/2016/05/nosql-cassandra-default-list-of-port-usage/</link>
					<comments>https://www.dbrnd.com/2016/05/nosql-cassandra-default-list-of-port-usage/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 09 May 2016 21:27:09 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2744</guid>

					<description><![CDATA[In this post, I am sharing an important list of ports which are used by the Cassandra for a different purpose. Cassandra developer has to know about these ports because it is very important while they are configuring the firewall for Cassandra server. 9160: Cassandra Thrift client API 9042: Cassandra native client port 7000: Cassandra [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&amp;linkname=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&amp;linkname=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&amp;linkname=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&amp;linkname=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&amp;linkname=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&amp;linkname=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-default-list-of-port-usage%2F&#038;title=NoSQL%3A%20Cassandra%20default%20list%20of%20port%20usage" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-cassandra-default-list-of-port-usage/" data-a2a-title="NoSQL: Cassandra default list of port usage"></a></p><p>In this post, I am sharing an important list of ports which are used by the Cassandra for a different purpose.</p>
<p>Cassandra developer has to know about these ports because it is very important while they are configuring the firewall for Cassandra server.</p>
<blockquote><p><strong>9160:</strong> Cassandra Thrift client API<br />
<strong>9042:</strong> Cassandra native client port
</p></blockquote>
<blockquote><p><strong>7000:</strong> Cassandra Internode cluster communication (not used if TLS enabled)<br />
<strong>7001:</strong> Cassandra SSL Internode cluster communication.<br />
<strong>7199 / 8080:</strong> JMX monitoring port
</p></blockquote>
<blockquote><p><strong>61620:</strong> Cassandra OpsCenter monitoring port<br />
<strong>61621:</strong> Cassandra OpsCenter agent port
</p></blockquote>
<blockquote><p><strong>8888:</strong> OpsCenter browser http request</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/05/nosql-cassandra-default-list-of-port-usage/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>NoSQL: Cassandra introduces Role Based Authentication</title>
		<link>https://www.dbrnd.com/2016/05/nosql-cassandra-introduces-role-based-authentication/</link>
					<comments>https://www.dbrnd.com/2016/05/nosql-cassandra-introduces-role-based-authentication/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 08 May 2016 20:33:32 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[GRANT]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[role]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2736</guid>

					<description><![CDATA[Prior to Cassandra 2.2, it supports only User base authentication, but now Cassandra introduces new Role-based authentication. In this post, I am sharing a demonstration on how to create a Role in Cassandra and How to assign different permissions to that role. You can directly use this Role for authentication and you can also assign [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&amp;linkname=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&amp;linkname=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&amp;linkname=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&amp;linkname=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&amp;linkname=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&amp;linkname=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-introduces-role-based-authentication%2F&#038;title=NoSQL%3A%20Cassandra%20introduces%20Role%20Based%20Authentication" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-cassandra-introduces-role-based-authentication/" data-a2a-title="NoSQL: Cassandra introduces Role Based Authentication"></a></p><p>Prior to Cassandra 2.2, it supports only User base authentication, but now Cassandra introduces new Role-based authentication.</p>
<p>In this post, I am sharing a demonstration on how to create a Role in Cassandra and How to assign different permissions to that role.<br />
You can directly use this Role for authentication and you can also assign same Role permission to another role.</p>
<p><strong>First, login with Cassandra&#8217;s super user. </strong></p><pre class="crayon-plain-tag">cqlsh -u cassanddra -p cassandra</pre><p>
<p><strong>Create keyspace if not exists:</strong></p><pre class="crayon-plain-tag">CREATE KEYSPACE IF NOT EXISTS dbrnd WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};

USE dbrnd;</pre><p>
<p><strong>Create few sample tables:</strong></p><pre class="crayon-plain-tag">CREATE TABLE IF NOT EXISTS tbl_Employee 
(
	EmpID INT PRIMARY KEY
	,EmpFirstName VARCHAR
	,EmpLastName VARCHAR
	,EmpSalary INT
);

CREATE TABLE IF NOT EXISTS tbl_Department
(
	DeptID INT PRIMARY KEY
	,DeptName VARCHAR
);</pre><p>
<p><strong>Create one sample Role without Superuser access:</strong><br />
<a href="https://www.dbrnd.com/2016/05/nosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password/" target="_blank"><strong>If you get this error :  &#8220;org.apache.cassandra.auth.CassandraRoleManager doesn&#8217;t support PASSWORD&#8221;, visit this solution. </strong></a></p><pre class="crayon-plain-tag">CREATE ROLE ReportingRole WITH PASSWORD = 'pass123' AND LOGIN = true AND SUPERUSER = false;</pre><p>
<p><strong>Grant different permissions to this Role:</strong></p><pre class="crayon-plain-tag">GRANT SELECT ON dbrnd.tbl_Employee TO ReportingRole;
GRANT MODIFY ON dbrnd.tbl_Department TO ReportingRole;</pre><p>
<p><strong>If you get any error like &#8221; GRANT operation is not supported by AllowAllAuthorizer&#8221;, you have to modify the value of &#8220;authorizer&#8221; in cassandra.yaml file. </strong></p><pre class="crayon-plain-tag">-- Old value:
 authorizer: AllowAllAuthorizer
 
 -- Change to this New value:
 authorizer: org.apache.cassandra.auth.CassandraAuthorizer</pre><p>
<p><strong>Grant over the all keyspaces:</strong></p><pre class="crayon-plain-tag">GRANT SELECT ON ALL KEYSPACES TO ReportingRole;
GRANT MODIFY ON ALL KEYSPACES TO ReportingRole;</pre><p>
<p><strong>Create new test Role and make it a replica of the current role:</strong></p><pre class="crayon-plain-tag">CREATE ROLE Test WITH PASSWORD = 'pass123' AND LOGIN = true AND SUPERUSER = false;

GRANT ReportingRole to Test;</pre><p>
<p><strong>List out all Roles and its permissions:</strong></p><pre class="crayon-plain-tag">-- List out all Roles.
LIST ROLES;
-- List out all permissions of the Role.
LIST ALL PERMISSIONS OF ReportingRole;</pre><p>
<a href="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraUserRole.png" rel="attachment wp-att-2741"><img fetchpriority="high" decoding="async" class="alignnone wp-image-2741 size-full" title="Cassandra User Role" src="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraUserRole.png" alt="Cassandra User Role" width="650" height="189" srcset="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraUserRole.png 650w, https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraUserRole-300x87.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraUserRole-150x44.png 150w" sizes="(max-width: 650px) 100vw, 650px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/05/nosql-cassandra-introduces-role-based-authentication/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>NoSQL: &#8220;org.apache.cassandra.auth.CassandraRoleManager doesn&#8217;t support PASSWORD&#8221;</title>
		<link>https://www.dbrnd.com/2016/05/nosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password/</link>
					<comments>https://www.dbrnd.com/2016/05/nosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 07 May 2016 06:54:48 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2731</guid>

					<description><![CDATA[Last week, I was creating my first database User and Role, but I got the below error in Cassandra &#8211; InvalidRequest: code=2200 [Invalid query] message=&#8221;org.apache.cassandra.auth.CassandraRoleManager doesn&#8217;t support PASSWORD&#8221;. For me, this is very important to resolve this problem because the application requires different database users for each process. I tried many options to solve this [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&amp;linkname=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&amp;linkname=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&amp;linkname=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&amp;linkname=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&amp;linkname=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&amp;linkname=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password%2F&#038;title=NoSQL%3A%20%E2%80%9Corg.apache.cassandra.auth.CassandraRoleManager%20doesn%E2%80%99t%20support%20PASSWORD%E2%80%9D" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password/" data-a2a-title="NoSQL: “org.apache.cassandra.auth.CassandraRoleManager doesn’t support PASSWORD”"></a></p><p><strong>Last week, I was creating my first database User and Role, but I got the below error in Cassandra &#8211; InvalidRequest: code=2200 [Invalid query] message=&#8221;org.apache.cassandra.auth.CassandraRoleManager doesn&#8217;t support PASSWORD&#8221;.</strong></p>
<p>For me, this is very important to resolve this problem because the application requires different database users for each process.  </p>
<p>I tried many options to solve this error and I have found that cassandra.yaml file require to edit.<br />
It has an authenticator parameter which has by default allow all types of authentication. </p>
<p>You can find this parameter and can change as mentioned below steps. </p>
<p><strong>Old value:</strong></p>
<pre class="crayon-plain-tag">authenticator: AllowAllAuthenticator</pre> </p>
<p><strong>Change with this new value:</strong></p>
<pre class="crayon-plain-tag">authenticator: PasswordAuthenticator</pre> </p>
<p><strong>Restart your Cassandra service:</strong></p>
<pre class="crayon-plain-tag">$ sudo service cassandra restart</pre> </p>
<p><strong>Login with default admin Cassandra user:</strong></p>
<pre class="crayon-plain-tag">$ cqlsh -u cassandra -p cassandra</pre> </p>
<p>Additionally, you can also check role manager parameter is exists or not. If below mention parameter does not exist in cassandra.yaml, you can add it. </p>
<pre class="crayon-plain-tag">role_manager: CassandraRoleManager</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/05/nosql-org-apache-cassandra-auth-cassandrarolemanager-doesnt-support-password/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>NoSQL: To Locate and Edit cassandra.yaml Configuration File of Cassandra</title>
		<link>https://www.dbrnd.com/2016/05/nosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra/</link>
					<comments>https://www.dbrnd.com/2016/05/nosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 06 May 2016 20:59:11 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[cassandra.yaml]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2722</guid>

					<description><![CDATA[What is cassandra.yaml configuration file? The cassandra.yaml file is the main configuration file of Cassandra. This file is very important for all kinds of Cassandra node and cluster level configurations. After changing properties in the cassandra.yaml file, you must restart the node for getting the configuration changes. The default location of cassandra.yaml: The default location [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&amp;linkname=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&amp;linkname=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&amp;linkname=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&amp;linkname=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&amp;linkname=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&amp;linkname=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra%2F&#038;title=NoSQL%3A%20To%20Locate%20and%20Edit%20cassandra.yaml%20Configuration%20File%20of%20Cassandra" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra/" data-a2a-title="NoSQL: To Locate and Edit cassandra.yaml Configuration File of Cassandra"></a></p><p><strong>What is cassandra.yaml configuration file?</strong></p>
<blockquote><p>The cassandra.yaml file is the main configuration file of Cassandra. This file is very important for all kinds of Cassandra node and cluster level configurations.<br />
After changing properties in the cassandra.yaml file, you must restart the node for getting the configuration changes. </p></blockquote>
<p><strong>The default location of cassandra.yaml:</strong></p>
<blockquote><p>The default location in linux is: /etc/cassandra.<br />
You can open this file with admin (sudo) user and can edit this.</p></blockquote>
<p><strong>Basic commands to locate this file:</strong></p><pre class="crayon-plain-tag">-- to list out all folders and files
$ ls -a	

-- change directory
$ cd /etc
$ cd cassandra</pre><p>
<a href="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileLocation.png" rel="attachment wp-att-2728"><img decoding="async" class="alignnone wp-image-2728 size-full" title="Cassandra Yaml File Location" src="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileLocation.png" alt="Cassandra Yaml File Location" width="476" height="103" srcset="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileLocation.png 476w, https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileLocation-300x65.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileLocation-150x32.png 150w" sizes="(max-width: 476px) 100vw, 476px" /></a></p>
<p><strong>Basic commands to open this file:</strong></p><pre class="crayon-plain-tag">$ sudo nano cassandra.yaml</pre><p>
<a href="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileConfiguration.png" rel="attachment wp-att-2726"><img decoding="async" class="alignnone wp-image-2726 size-full" title="Cassandra Yaml File Configuration" src="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileConfiguration.png" alt="Cassandra Yaml File Configuration" width="654" height="370" srcset="https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileConfiguration.png 654w, https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileConfiguration-300x170.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/05/CassandraYamlFileConfiguration-150x85.png 150w" sizes="(max-width: 654px) 100vw, 654px" /></a></p>
<p><strong>After edit, Restart the cassandra service:</strong><br />
<pre class="crayon-plain-tag">-- restart service
$ sudo service cassandra restart
-- after restart check the service status
$ sudo service cassandra status</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/05/nosql-to-locate-and-edit-cassandra-yaml-configuration-file-of-cassandra/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>NoSQL: Cassandra Collection Data Types &#8211; List, Set, Map</title>
		<link>https://www.dbrnd.com/2016/05/nosql-cassandra-collection-data-types-list-set-map/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 05 May 2016 20:21:38 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[Collection]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[LIST]]></category>
		<category><![CDATA[MAP]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[SET]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2699</guid>

					<description><![CDATA[In this post, I am sharing a demonstration of Cassandra Collection data types. Basically, CQL provides three different types of collection data types, SET, LIST, MAP. Using collection data types, you can store multiple values in a single column. You can store multiple values in a single column, but try to keep your collection small [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&amp;linkname=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&amp;linkname=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&amp;linkname=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&amp;linkname=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&amp;linkname=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&amp;linkname=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-collection-data-types-list-set-map%2F&#038;title=NoSQL%3A%20Cassandra%20Collection%20Data%20Types%20%E2%80%93%20List%2C%20Set%2C%20Map" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-cassandra-collection-data-types-list-set-map/" data-a2a-title="NoSQL: Cassandra Collection Data Types – List, Set, Map"></a></p><p>In this post, I am sharing a demonstration of Cassandra Collection data types. </p>
<p>Basically, CQL provides three different types of collection data types, SET, LIST, MAP.<br />
Using collection data types, you can store multiple values in a single column. </p>
<p>You can store multiple values in a single column, but try to keep your collection small otherwise it creates performance overhead. </p>
<p><strong>Collection data types:</strong></p>
<p><strong>Create a sample table with collectio data type<br />
(SET, LIST, MAP):</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE IF NOT EXISTS tbl_Employee
(
    EmpID INT PRIMARY KEY 
    ,EmpName VARCHAR
    ,Emails SET&lt;text&gt;
    ,Hobbies LIST&lt;text&gt;
    ,Address MAP&lt;text,text&gt;
) ;</pre> </p>
<p><strong>Insert a sample record:</strong></p>
<pre class="crayon-plain-tag">INSERT INTO tbl_Employee
(EmpID,EmpName,Emails,Hobbies,Address)
VALUES
(
    1
    ,'Anvesh'
    ,{'test1@gmail.com','test2@gmail.com'}
    ,['Blogging','Animation','Photography']
    ,{'home': 'Gujarat', 'office': 'Hyderabad'}
);</pre> </p>
<p><strong>Update data on Collection type:</strong></p>
<pre class="crayon-plain-tag">UPDATE tbl_Employee SET Emails = Emails + {'test3@gmail.com'} WHERE EmpID=1;
UPDATE tbl_Employee SET Hobbies = Hobbies + ['Watching Movies'] WHERE EmpID=1;
UPDATE tbl_Employee SET Address = Address + {'farm':'Bhavnagar'} WHERE EmpID=1;</pre> </p>
<p><strong>Filter on Collection type:</strong></p>
<pre class="crayon-plain-tag">SELECT * FROM tbl_Employee WHERE Address CONTAINS 'Gujarat' ALLOW FILTERING;
SELECT * FROM tbl_Employee WHERE Hobbies CONTAINS 'Blogging' ALLOW FILTERING;
SELECT * FROM tbl_Employee WHERE Emails CONTAINS 'test1@gmail.com' ALLOW FILTERING;</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>NoSQL: Cassandra Automatic Data Expiration using Time to Live (ttl)</title>
		<link>https://www.dbrnd.com/2016/05/nosql-cassandra-automatic-data-expiration-using-time-to-live-ttl/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 04 May 2016 19:45:38 +0000</pubDate>
				<category><![CDATA[Cassandra]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[automatic data expiration]]></category>
		<category><![CDATA[Column Store]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Document Store]]></category>
		<category><![CDATA[Graph Store]]></category>
		<category><![CDATA[Key Value Store]]></category>
		<category><![CDATA[Not Only SQL]]></category>
		<category><![CDATA[Time to Live]]></category>
		<category><![CDATA[ttl]]></category>
		<category><![CDATA[Unstrucutred]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2675</guid>

					<description><![CDATA[Cassandra Automatic Data Expiration: The Automatic Data Expiration is one of the features of NoSQL Cassandra Database. You can set an expiration time in second to expire a particular data. You can set Time to Live (ttl) value in seconds. The defined TTL data are marked with a Tombstone Garbage collector parameter (deletion marker) and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&amp;linkname=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F05%2Fnosql-cassandra-automatic-data-expiration-using-time-to-live-ttl%2F&#038;title=NoSQL%3A%20Cassandra%20Automatic%20Data%20Expiration%20using%20Time%20to%20Live%20%28ttl%29" data-a2a-url="https://www.dbrnd.com/2016/05/nosql-cassandra-automatic-data-expiration-using-time-to-live-ttl/" data-a2a-title="NoSQL: Cassandra Automatic Data Expiration using Time to Live (ttl)"></a></p><p><strong>Cassandra Automatic Data Expiration:<br />
</strong></p>
<blockquote><p>The Automatic Data Expiration is one of the features of NoSQL Cassandra Database.<br />
You can set an expiration time in second to expire a particular data.<br />
You can set Time to Live (ttl) value in seconds.</p></blockquote>
<blockquote><p>The defined TTL data are marked with a Tombstone Garbage collector parameter (deletion marker) and after that data automatically removed during the compaction process.</p></blockquote>
<blockquote><p>You can change TTL value by re-insert the data with new TTL value.<br />
The actual insertion is kind of INSERT or UPDATE because it checks the previous data version and accordingly it performs the action.<br />
You can set the TTL value in both INSERT and UPDATE statements.</p></blockquote>
<blockquote><p>Automation Expiration of The Data, real-time application use like any e-commerce product is declaring different offers on products and each offer should expire at a specific time.<br />
In this kind of application, we can use the feature like the automation expiration of the Data.</p></blockquote>
<p><strong>Small demonstration:</strong></p>
<p><strong>Create a sample table:</strong></p><pre class="crayon-plain-tag">CREATE TABLE IF NOT EXISTS tbl_Employee 
(
  EmpID INT PRIMARY KEY
  ,EmpFirstName VARCHAR
  ,EmpLastName VARCHAR
  ,EmpSalary INT
);</pre><p>
<p><strong>Insert one row using TTL for 20 second:</strong><br />
After 20 seconds, data automatically will remove.</p><pre class="crayon-plain-tag">INSERT INTO tbl_Employee 
(EmpID,EmpFirstName,EmpLastName,EmpSalary)
VALUES
(1,'Anvesh','Patel',50000) USING TTL 20;</pre><p>
<p><strong>The Result:</strong></p>
<p><a href="https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL.png" rel="attachment wp-att-2681"><img loading="lazy" decoding="async" class="alignnone wp-image-2681 size-full" title="NoSQL Cassandra Time To Live TTL" src="https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL.png" alt="NoSQL Cassandra Time To Live TTL" width="656" height="416" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL.png 656w, https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL-300x190.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/04/NoSQLCassandraTimeToLive_TTL-150x95.png 150w" sizes="auto, (max-width: 656px) 100vw, 656px" /></a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
