{"id":15124,"date":"2014-09-10T11:52:39","date_gmt":"2014-09-10T06:22:39","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=15124"},"modified":"2016-12-19T14:54:44","modified_gmt":"2016-12-19T09:24:44","slug":"recommendation-engine-by-using-apache-mahout-cassandra","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/","title":{"rendered":"Recommendation Engine by using Apache Mahout &amp; Cassandra"},"content":{"rendered":"<p style=\"text-align: justify\">As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra\u00a0 <code>DataModel<\/code>CassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes\u00a0 and Mahout FileDataModel<\/p>\n<p style=\"text-align: justify\">Here we are having 1 millions of Records in Cassandra Database in a testkeyspace with 2 tables and their schema are<\/p>\n<p style=\"text-align: justify\">CREATE TABLE SampleUser (<br \/>\nuser_id bigint,<br \/>\nratings float,<br \/>\nitem_id bigint,<br \/>\nPRIMARY KEY (user_id, ratings, item_id)<br \/>\n)<\/p>\n<p style=\"text-align: justify\">CREATE TABLE SampleItems (<br \/>\nitem_id bigint,<br \/>\nuser_id bigint,<br \/>\nratings float,<br \/>\nPRIMARY KEY (item_id, user_id)<br \/>\n)<\/p>\n<p style=\"text-align: justify\">We want to provide User based Recommendations, Item based recommendation with help of similar users (For example, based on the rating giving by other users in a common locality or other similarity).<\/p>\n<p style=\"text-align: justify\">They are<\/p>\n<p style=\"text-align: justify\">1)Customers Who Bought This Item Also Bought\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2)Customers Who Viewed This Item Also Viewed<\/p>\n<p style=\"margin-bottom: 0cm;font-weight: normal;line-height: 100%\">The java code for Mahout Recommendations in Cassandra Database<\/p>\n<p>[html]<br \/>\npublic class RecommendationsFromCassandra {<br \/>\nprivate Cluster cluster;<br \/>\nprivate Session session;<\/p>\n<p>\/*<br \/>\n* Connection to Cassandra Database<br \/>\n*\/<\/p>\n<p>public void connect(String node) {<br \/>\ncluster = Cluster.builder().addContactPoint(node).build();<br \/>\nMetadata metadata = cluster.getMetadata();<br \/>\nsession = cluster.connect();<br \/>\n}<\/p>\n<p>\/*<br \/>\n* Executing the query to get the user ids who are having particular item<br \/>\n*\/<\/p>\n<p>public void query1() throws IOException {<br \/>\nString userids = null;<br \/>\nResultSet results = session<br \/>\n.execute(&quot;SELECT user_id FROM testkeyspace.sampleitems WHERE item_id = 914&quot;);<br \/>\nfor (Row row : results)<br \/>\n           {<br \/>\nif (userids == null)<br \/>\nuserids = Long.toString(row.getLong(&quot;user_id&quot;));<br \/>\nelse<br \/>\nuserids = userids + &quot;,&quot; + row.getLong(&quot;user_id&quot;);<br \/>\n}<\/p>\n<p>\/*<br \/>\n* Transfer the all user ids to the 2nd query to get the all users and<br \/>\n* their item id&#8217;s , Ratings<br \/>\n*\/<\/p>\n<p>String stmt = &quot;SELECT user_id,item_id,ratings FROM testkeyspace.sampleuser WHERE user_id in (&quot;<br \/>\n+ userids + &quot;) ;&quot;;<\/p>\n<p>Statement s1 = new SimpleStatement(stmt);<br \/>\ns1.setFetchSize(Integer.MAX_VALUE);<\/p>\n<p>ResultSet results1 = session.execute(s1);<br \/>\nFile newTextFile = new File(&quot;${env:HOME}\/thetextfile.txt&quot;);<br \/>\nFileWriter fw = new FileWriter(newTextFile);<\/p>\n<p>for (Row row2 : results1) {<br \/>\nfw.write(row2.getLong(&quot;user_id&quot;) + &quot;\\t&quot; + row2.getLong(&quot;item_id&quot;)<br \/>\n+ &quot;\\t&quot; + row2.getFloat(&quot;ratings&quot;) + &quot;\\n&quot;);<br \/>\n}<br \/>\nfw.close();<\/p>\n<p>\/*<br \/>\n* Recommendation Part<br \/>\n*\/<\/p>\n<p>UserSimilarity similarity;<br \/>\ntry {<br \/>\nDataModel datamodel = new FileDataModel(new File(<br \/>\n&quot;${env:HOME}\/thetextfile.txt&quot;));<br \/>\nsimilarity = new PearsonCorrelationSimilarity(datamodel);<br \/>\nUserNeighborhood neighbourhood = new NearestNUserNeighborhood(100,<br \/>\nsimilarity, datamodel);<\/p>\n<p>Recommender recommender = new GenericUserBasedRecommender(<br \/>\ndatamodel, neighbourhood, similarity);<br \/>\nlong start = System.currentTimeMillis();<br \/>\nList&lt;RecommendedItem&gt; recommendations = recommender.recommend(10,<br \/>\n10);<br \/>\nfor (RecommendedItem recommendation : recommendations) {<br \/>\nSystem.out.println(recommendation);<\/p>\n<p>}<br \/>\nlong stop = System.currentTimeMillis();<br \/>\nSystem.out.println(&quot;Took: &quot; + (stop &#8211; start) + &quot; millis&quot;);<\/p>\n<p>} catch (TasteException e) {<br \/>\ne.printStackTrace();<br \/>\n}<\/p>\n<p>}<\/p>\n<p>public void close() {<br \/>\ncluster.close();<br \/>\n}<\/p>\n<p>public static void main(String[] args) throws IOException {<br \/>\nRecommendationsFromCassandra client = new RecommendationsFromCassandra();<br \/>\nclient.connect(&quot;127.0.0.1&quot;);<br \/>\nclient.query1();<br \/>\n\/\/ CassandraRecommender r = new CassandraRecommender();<br \/>\nclient.close();<br \/>\nFile file = new File(&quot;${env:HOME}\/thetextfile.txt&quot;);<br \/>\nfile.delete();<br \/>\n}<br \/>\n}<br \/>\n[\/html]<\/p>\n<p><b><span style=\"color: #000000\"><span style=\"font-family: Liberation Serif,serif\"><span style=\"font-size: medium\"><br \/>\nThe time consumming for Recommendations to particular user is <\/span><\/span><\/span><span style=\"color: #000000\"><span style=\"font-family: Liberation Serif,serif\"><span style=\"font-size: medium\">2.40<\/span><\/span><\/span><span style=\"color: #000000\"><span style=\"font-family: Liberation Serif,serif\"><span style=\"font-size: medium\"> sec for 1m records<\/span><\/span><\/span><\/b><\/p>\n<p><strong><span style=\"color: #000000\"><span style=\"font-family: Liberation Serif,serif\"><span style=\"font-size: medium\">\u00a0<\/span><\/span><\/span><\/strong><\/p>\n<p><strong><span style=\"color: #000000\"><span style=\"font-family: Liberation Serif,serif\"><span style=\"font-size: medium\">\u00a0<\/span><\/span><\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra\u00a0 DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes\u00a0 and [&hellip;]<\/p>\n","protected":false},"author":114,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[1395],"tags":[],"class_list":["post-15124","post","type-post","status-publish","format-standard","hentry","category-big-data"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Pavan\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Recommendation Engine by using Apache Mahout &amp; Cassandra | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Recommendation Engine by using Apache Mahout &amp; Cassandra | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#article\",\"name\":\"Recommendation Engine by using Apache Mahout & Cassandra | TO THE NEW Blog\",\"headline\":\"Recommendation Engine by using Apache Mahout &amp; Cassandra\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pavan\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-09-10T11:52:39+05:30\",\"dateModified\":\"2016-12-19T14:54:44+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#webpage\"},\"articleSection\":\"Big Data\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/big-data\\\/#listItem\",\"name\":\"Big Data\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/big-data\\\/#listItem\",\"position\":2,\"name\":\"Big Data\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/big-data\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#listItem\",\"name\":\"Recommendation Engine by using Apache Mahout &amp; Cassandra\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#listItem\",\"position\":3,\"name\":\"Recommendation Engine by using Apache Mahout &amp; Cassandra\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/big-data\\\/#listItem\",\"name\":\"Big Data\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pavan\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pavan\\\/\",\"name\":\"Pavan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5b433937b104b79072ed364af9c379663e6072b6aa5bed9ced6da4052c3aece9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Pavan\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/\",\"name\":\"Recommendation Engine by using Apache Mahout & Cassandra | TO THE NEW Blog\",\"description\":\"As a part of R&D we are trying to build a recommendations for users by using Apache Mahout & Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/recommendation-engine-by-using-apache-mahout-cassandra\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pavan\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/pavan\\\/#author\"},\"datePublished\":\"2014-09-10T11:52:39+05:30\",\"dateModified\":\"2016-12-19T14:54:44+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Recommendation Engine by using Apache Mahout & Cassandra | TO THE NEW Blog","description":"As a part of R&D we are trying to build a recommendations for users by using Apache Mahout & Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and","canonical_url":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#article","name":"Recommendation Engine by using Apache Mahout & Cassandra | TO THE NEW Blog","headline":"Recommendation Engine by using Apache Mahout &amp; Cassandra","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/pavan\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2014-09-10T11:52:39+05:30","dateModified":"2016-12-19T14:54:44+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#webpage"},"articleSection":"Big Data"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/big-data\/#listItem","name":"Big Data"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/big-data\/#listItem","position":2,"name":"Big Data","item":"https:\/\/2thenew.today\/blog\/category\/big-data\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#listItem","name":"Recommendation Engine by using Apache Mahout &amp; Cassandra"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#listItem","position":3,"name":"Recommendation Engine by using Apache Mahout &amp; Cassandra","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/big-data\/#listItem","name":"Big Data"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/pavan\/#author","url":"https:\/\/2thenew.today\/blog\/author\/pavan\/","name":"Pavan","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5b433937b104b79072ed364af9c379663e6072b6aa5bed9ced6da4052c3aece9?s=96&d=mm&r=g","width":96,"height":96,"caption":"Pavan"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#webpage","url":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/","name":"Recommendation Engine by using Apache Mahout & Cassandra | TO THE NEW Blog","description":"As a part of R&D we are trying to build a recommendations for users by using Apache Mahout & Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/pavan\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/pavan\/#author"},"datePublished":"2014-09-10T11:52:39+05:30","dateModified":"2016-12-19T14:54:44+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Recommendation Engine by using Apache Mahout &amp; Cassandra | TO THE NEW Blog","og:description":"As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and","og:url":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Recommendation Engine by using Apache Mahout &amp; Cassandra | TO THE NEW Blog","twitter:description":"As a part of R&amp;D we are trying to build a recommendations for users by using Apache Mahout &amp; Cassandra.There was a direct Cassandra DataModelCassandraDataModel based on a Cassandra keyspace, but there was a lot of confusions which involves so many methods and functions,then we are tried to minimize it by using Cassandra Indexes and","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"15124","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 07:59:32","updated":"2024-02-29 10:43:24","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/big-data\/\" title=\"Big Data\">Big Data<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRecommendation Engine by using Apache Mahout &amp; Cassandra\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Big Data","link":"https:\/\/2thenew.today\/blog\/category\/big-data\/"},{"label":"Recommendation Engine by using Apache Mahout &amp; Cassandra","link":"https:\/\/2thenew.today\/blog\/recommendation-engine-by-using-apache-mahout-cassandra\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/15124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/114"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=15124"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/15124\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=15124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=15124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=15124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}