{"id":33640,"date":"2014-11-27T16:00:11","date_gmt":"2014-11-27T14:00:11","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=33640"},"modified":"2014-11-27T08:27:32","modified_gmt":"2014-11-27T06:27:32","slug":"getting-started-with-apache-cassandra-and-java-part-i","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html","title":{"rendered":"Getting Started with Apache Cassandra and Java (Part I)"},"content":{"rendered":"<p>On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what to do next.<\/p>\n<h2>Requirements<\/h2>\n<p>To follow this tutorial, you should already have a running Cassandra instance, and have gone through the 10 minute walkthrough here: <a href=\"http:\/\/planetcassandra.org\/create-a-keyspace-and-table\/\">http:\/\/planetcassandra.org\/create-a-keyspace-and-table\/<\/a>.<\/p>\n<p>If you\u2019ve already reviewed part I, be sure to check out <a href=\"http:\/\/www.PlanetCassandra.org\/getting-started-with-apache-cassandra-and-java-part-2\/\">Getting Started with Apache Cassandra and Java Part II<\/a>.<\/p>\n<p>You should have the demo keyspace and schema still set up, we will be referring to it below.<\/p>\n<h2>Setup<\/h2>\n<p>For this demo, we\u2019re going to be creating a simple console application. \u00a0Open a text editor and create a java file with a \u201cGettingStarted\u201d class and a single main method.<\/p>\n<pre class=\"brush:java\">public class GettingStarted {\r\n \r\n        public static void main(String[] args) {<\/pre>\n<p>We also need to download the driver jar file from the downloads page. <a href=\"http:\/\/downloads.datastax.com\/java-driver\/cassandra-java-driver-2.0.2.tar.gz\">Click here.<\/a> Once it\u2019s downloaded, you need to expand it in your working directory. Then we have to ensure we include it in the classpath when we compile our .java file.<\/p>\n<p>For example:<\/p>\n<p><code>javac -classpath cassandra-java-driver-2.0.2\/cassandra-driver-core-2.0.2.jar:. GettingStarted.java<\/code><\/p>\n<p>When we run the file:<\/p>\n<p><code>java -classpath cassandra-java-driver-2.0.2\/*:cassandra-java-driver-2.0.2\/lib\/*:. GettingStarted<\/code><\/p>\n<h2>Try it Out<\/h2>\n<p>All of our code will be going into our main method. First we need to create cluster and session instance fields to hold the references. A session will manage the connections to our cluster.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:java\">Cluster cluster;\r\nSession session;<\/pre>\n<p>Connect to your instance using the Cluster.builder method. It will add a contact point and build a cluster instance. Get a session from your cluster, connecting to the \u201cdemo\u201d keyspace.<\/p>\n<pre class=\"brush:java\">\/\/ Connect to the cluster and keyspace \"demo\"\r\ncluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build();\r\nsession = cluster.connect(\"demo\");<\/pre>\n<p>Now that you are connected to the \u201cdemo\u201d keyspace, let\u2019s insert a user into the \u201cusers\u201d table<\/p>\n<pre class=\"brush:java;wrap-lines:false\">\/\/ Insert one record into the users table\r\nsession.execute(\"INSERT INTO users (lastname, age, city, email, firstname) VALUES ('Jones', 35, 'Austin', 'bob@example.com', 'Bob')\");\r\n<\/pre>\n<p>Using the Java driver, we can easily pull the user back out<\/p>\n<pre class=\"brush:java\">\/\/ Use select to get the user we just entered\r\nResultSet results = session.execute(\"SELECT * FROM users WHERE lastname='Jones'\");\r\nfor (Row row : results) {\r\nSystem.out.format(\"%s %d\\n\", row.getString(\"firstname\"), row.getInt(\"age\"));\r\n}\r\n<\/pre>\n<p>Since it\u2019s Bob\u2019s birthday, we are going to update his age.<\/p>\n<pre class=\"brush:java\">\/\/ Update the same user with a new age\r\nsession.execute(\"update users set age = 36 where lastname = 'Jones'\");\r\n\/\/ Select and show the change\r\nresults = session.execute(\"select * from users where lastname='Jones'\");\r\nfor (Row row : results) {\r\nSystem.out.format(\"%s %d\\n\", row.getString(\"firstname\"), row.getInt(\"age\"));\r\n \r\n}<\/pre>\n<p>Now let\u2019s delete Bob from the table. Then we can print out all the rows. You\u2019ll notice that Bob\u2019s information no longer comes back after being deleted (others might, if you have inserted users previously).<\/p>\n<pre class=\"brush:java;wrap-lines:false\">\/\/ Delete the user from the users table\r\nsession.execute(\"DELETE FROM users WHERE lastname = 'Jones'\");\r\n\/\/ Show that the user is gone\r\nresults = session.execute(\"SELECT * FROM users\");\r\nfor (Row row : results) {\r\nSystem.out.format(\"%s %d %s %s %s\\n\", row.getString(\"lastname\"), row.getInt(\"age\"),  row.getString(\"city\"), row.getString(\"email\"), row.getString(\"firstname\"));\r\n}<\/pre>\n<p>Make sure that the connection closes once you are done.<\/p>\n<pre class=\"brush:java\">\/\/ Clean up the connection by closing it\r\ncluster.close();\r\n    }\r\n}<\/pre>\n<p>CQL is very similar to SQL, in many cases the same syntax will work. \u00a0This makes querying for data very straightforward if you have a background with relational databases.<\/p>\n<p>You have just managed to connect to a Cassandra cluster and perform queries against a live (local) database. Hopefully this demonstrates just how easy it is to use Cassandra using the Java driver. \u00a0A Gist of the complete console application for this sample is <a href=\"https:\/\/gist.github.com\/beccam\/06c3283e5ee4a480a555\">available on GitHub<\/a>.<\/p>\n<h2>More Resources<\/h2>\n<p><a href=\"http:\/\/www.PlanetCassandra.org\/getting-started-with-apache-cassandra-and-java-part-2\/\">Getting Started with Apache Cassandra and Java Part II<\/a>.<\/p>\n<p>Read the <a href=\"http:\/\/www.datastax.com\/documentation\/developer\/java-driver\/2.0\/java-driver\/whatsNew2.html\">documentation<\/a> for the Java driver.<\/p>\n<p>Learn more about <a href=\"http:\/\/www.datastax.com\/documentation\/developer\/java-driver\/2.0\/java-driver\/quick_start\/qsSimpleClientBoundStatements_t.html\">prepared statements<\/a> for security and performance.<\/p>\n<p>Read up <a href=\"http:\/\/www.datastax.com\/documentation\/cql\/3.1\/cql\/cql_intro_c.html\">more on CQL<\/a>.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/planetcassandra.org\/getting-started-with-apache-cassandra-and-java\/\">Getting Started with Apache Cassandra and Java (Part I)<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\/\">JCG partner<\/a> Rebecca Mills at the <a href=\"http:\/\/planetcassandra.org\/\">Planet Cassandra<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what to do next. Requirements To follow this tutorial, you should already have a running Cassandra instance, and have gone through the 10 minute walkthrough here: http:\/\/planetcassandra.org\/create-a-keyspace-and-table\/. If you\u2019ve &hellip;<\/p>\n","protected":false},"author":609,"featured_media":53,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[111,113],"class_list":["post-33640","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-apache-cassandra","tag-nosql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting Started with Apache Cassandra and Java (Part I)<\/title>\n<meta name=\"description\" content=\"On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started with Apache Cassandra and Java (Part I)\" \/>\n<meta property=\"og:description\" content=\"On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-27T14:00:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rebecca Mills\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/rebccamills\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rebecca Mills\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html\"},\"author\":{\"name\":\"Rebecca Mills\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/e39089bbfc25a635a6e29574ddab3add\"},\"headline\":\"Getting Started with Apache Cassandra and Java (Part I)\",\"datePublished\":\"2014-11-27T14:00:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html\"},\"wordCount\":476,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"keywords\":[\"Apache Cassandra\",\"NoSQL\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html\",\"name\":\"Getting Started with Apache Cassandra and Java (Part I)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"datePublished\":\"2014-11-27T14:00:11+00:00\",\"description\":\"On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-cassandra-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/11\\\/getting-started-with-apache-cassandra-and-java-part-i.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Getting Started with Apache Cassandra and Java (Part I)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/e39089bbfc25a635a6e29574ddab3add\",\"name\":\"Rebecca Mills\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/97c407ac900dc0b57e952a94cccf5104b0a3a7499a4958f86aa241213d79f02b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/97c407ac900dc0b57e952a94cccf5104b0a3a7499a4958f86aa241213d79f02b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/97c407ac900dc0b57e952a94cccf5104b0a3a7499a4958f86aa241213d79f02b?s=96&d=mm&r=g\",\"caption\":\"Rebecca Mills\"},\"description\":\"Rebecca Mills is a Junior Evangelist at DataStax, the company that delivers Apache Cassandra\u2122 to the enterprise. She is interested in the new Cassandra user experience and is involved making it more approachable for everyone. She holds a B.Sc in biochemistry from Memorial University of Newfoundland and has been known to go on a bit about genome analysis.\",\"sameAs\":[\"http:\\\/\\\/planetcassandra.org\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/rebccamills\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/rebecca-mills\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Started with Apache Cassandra and Java (Part I)","description":"On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html","og_locale":"en_US","og_type":"article","og_title":"Getting Started with Apache Cassandra and Java (Part I)","og_description":"On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what","og_url":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2014-11-27T14:00:11+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","type":"image\/jpeg"}],"author":"Rebecca Mills","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/rebccamills","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Rebecca Mills","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html"},"author":{"name":"Rebecca Mills","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/e39089bbfc25a635a6e29574ddab3add"},"headline":"Getting Started with Apache Cassandra and Java (Part I)","datePublished":"2014-11-27T14:00:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html"},"wordCount":476,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","keywords":["Apache Cassandra","NoSQL"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html","url":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html","name":"Getting Started with Apache Cassandra and Java (Part I)","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","datePublished":"2014-11-27T14:00:11+00:00","description":"On this page, you\u2019ll learn just enough to get started with NoSQL Apache Cassandra and Java, including how to install, try out some basic commands and what","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-cassandra-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2014\/11\/getting-started-with-apache-cassandra-and-java-part-i.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Getting Started with Apache Cassandra and Java (Part I)"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/e39089bbfc25a635a6e29574ddab3add","name":"Rebecca Mills","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/97c407ac900dc0b57e952a94cccf5104b0a3a7499a4958f86aa241213d79f02b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/97c407ac900dc0b57e952a94cccf5104b0a3a7499a4958f86aa241213d79f02b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/97c407ac900dc0b57e952a94cccf5104b0a3a7499a4958f86aa241213d79f02b?s=96&d=mm&r=g","caption":"Rebecca Mills"},"description":"Rebecca Mills is a Junior Evangelist at DataStax, the company that delivers Apache Cassandra\u2122 to the enterprise. She is interested in the new Cassandra user experience and is involved making it more approachable for everyone. She holds a B.Sc in biochemistry from Memorial University of Newfoundland and has been known to go on a bit about genome analysis.","sameAs":["http:\/\/planetcassandra.org\/","https:\/\/x.com\/https:\/\/twitter.com\/rebccamills"],"url":"https:\/\/www.javacodegeeks.com\/author\/rebecca-mills"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/33640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/609"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=33640"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/33640\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=33640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=33640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=33640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}