

{"id":400,"date":"2016-06-13T11:51:08","date_gmt":"2016-06-13T11:51:08","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=400"},"modified":"2016-06-13T11:51:08","modified_gmt":"2016-06-13T11:51:08","slug":"hbase-soft-introduction-and-quickstart","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/","title":{"rendered":"HBase &#8211; Soft Introduction and Quickstart"},"content":{"rendered":"<p>This tutorial explains basics of HBase, and its features. Here I tried to explain functionality HBase provides and a quick start about HBase, a Basic tutorial for beginners. You will get to know where to use HBase, in which situation HBase can be useful.<\/p>\n<h1>What is HBase?<\/h1>\n<div id=\"attachment_401\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/data-flair.training\/blogs\/wp-content\/uploads\/Apache-HBase.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-401\" class=\"wp-image-401 size-medium\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Apache-HBase-300x69.png\" alt=\"HBase \u2013 Soft Introduction and Quickstart\" width=\"300\" height=\"69\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Apache-HBase-300x69.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Apache-HBase-150x34.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Apache-HBase.png 524w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-401\" class=\"wp-caption-text\">HBase \u2013 Soft Introduction and Quickstart<\/p><\/div>\n<p>HBase is an open source, distributed, versioned, column-oriented, No-SQL \/ Non-relational database management system that runs on the top of Hadoop (To Install Hadoop <a href=\"http:\/\/data-flair.training\/blogs\/install-configure-apache-hadoop-2-7-x-on-ubuntu\/\">Follow this installation Guide<\/a>). It adds transactional capability to hadoop, allowing users to update data records.<\/p>\n<p>Hadoop is designed for batch processing of large dataset, but with HBase on the top of Hadoop we can process real time dataset.<\/p>\n<p style=\"text-align: center;font-size: 10px\">Source: <a href=\"http:\/\/hbase.apache.org\/\" target=\"_blank\" rel=\"noopener\">Apache<\/a><\/p>\n<p>In HBase a master node manages the cluster and region servers store portions of the tables and perform the work on the data. An HBase system comprises a set of tables. Each table contains rows and columns, much like a traditional database.<\/p>\n<p>Each table must have an element defined as a Primary Key, and all access attempts to HBase tables must use this Primary Key. An HBase column represents an attribute of an object<\/p>\n<h1>Benefits \/ Functionalities HBase offers:<\/h1>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Open source project (Apache)<\/li>\n<li>A sparse , three-dimensional array of cells, indexed by: RowKey, ColumnKey, Timestamp\/Version<\/li>\n<li>Distributed, Reliable, large-scale data store<\/li>\n<li>Efficient at random reads\/writes<\/li>\n<li>Sharded into regions along an ordered RowKey space<\/li>\n<li>Within each region: Data is grouped into column families<\/li>\n<li>Sort order within each column family: Row Key (asc), Column Key (asc), Timestamp (desc)<\/li>\n<li>Store large amounts of data<\/li>\n<li>High write throughput<\/li>\n<li>Efficient random access within large data sets<\/li>\n<li>Scale gracefully with data<\/li>\n<li>For structured and semi-structured data<\/li>\n<li>Don\u2019t provide full RDMS capabilities (cross table transactions, joins, etc.)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>After understanding basics of HBase, let\u2019s deploy HBase on a single Node (in pseudo distributed mode)<\/p>\n<h1>Pre-requisites:<\/h1>\n<ul>\n<li>Install Java<\/li>\n<\/ul>\n<p>[php]$sudo apt-get install openjdk-6-jdk[\/php]<\/p>\n<ul>\n<li>Install Hadoop <a href=\"http:\/\/data-flair.training\/blogs\/install-cloudera-hadoop-cdh5-ubuntu\/\" target=\"_blank\" rel=\"noopener\">(You can refer this tutorial to install Hadoop)<\/a><\/li>\n<\/ul>\n<h1>Install \/ Setup HBase on Ubuntu:<\/h1>\n<h2>1. Download HBase<\/h2>\n<p>Download a stable version of HBase either from Apache or Cloudera<\/p>\n<h2>2. Untar Tar Ball<\/h2>\n<p>[php]$ tar xzf hbase-*.tar.gz[\/php]<\/p>\n<h2>3. Set Java_Home in hbase-env.sh<\/h2>\n<p>[php]$ pico conf\/hbase-env.sh[\/php]<\/p>\n<h2>4. Add following entries to conf\/hbase-site.xml<\/h2>\n<p>[php]hbase.rootdir<br \/>\nhdfs:\/\/localhost:8020\/hbase<br \/>\nhbase.master<br \/>\nlocalhost:60000[\/php]<\/p>\n<h2>5. Comment in \/etc\/hosts<\/h2>\n<p>[php]#127.0.0.1 hostname[\/php]<\/p>\n<h2>6. Start hbase<\/h2>\n<p>[php]$ bin\/start-hbase.sh[\/php]<\/p>\n<h2>7. Start HBase Shell<\/h2>\n<p>[php]$ bin\/hbase shell[\/php]<\/p>\n<p style=\"text-align: center\"><em><u><strong>HBase has been installed on your machine<\/strong><\/u><\/em><\/p>\n<p>Run jps command to check required daemons are running<br \/>\n[php]$ jps<br \/>\n3669 HMaster[\/php]<\/p>\n<h1>Some basic commands of HBase<\/h1>\n<h2>1. Create table<\/h2>\n<p>Create table with name \u2018test\u2019 and column family \u2018cf\u2019<br \/>\n[php]create \u2018test\u2019, \u2018cf\u2019[\/php]<\/p>\n<h2>2. List tables<\/h2>\n<p>List all the tables<br \/>\n[php]list[\/php]<\/p>\n<h2>3. Insert data<\/h2>\n<p>Add data into \u2018test\u2019 table<br \/>\n[php]put \u2018test\u2019, \u2018row1\u2019, \u2018cf:a\u2019, \u2018value_1\u2019<br \/>\nput \u2018test\u2019, \u2018row2\u2019, \u2018cf:b\u2019, \u2018value_2\u2019[\/php]<\/p>\n<h2>4. Read data<\/h2>\n<p>Read the data from table \u2018test\u2019<br \/>\n[php]scan \u2018test\u2019[\/php]<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2477,&quot;href&quot;:&quot;http:\\\/\\\/hbase.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251006094830\\\/https:\\\/\\\/hbase.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 07:07:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-16 14:05:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-28 17:20:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-28 12:47:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-06 08:31:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-03 07:33:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 19:44:25&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-03-17 19:44:25&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains basics of HBase, and its features. Here I tried to explain functionality HBase provides and a quick start about HBase, a Basic tutorial for beginners. You will get to know where&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":42900,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[794,1645,1907,1971,3416,4101,5405,5437],"class_list":["post-400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hbase","tag-apache-hbase","tag-basic-commands-hbase","tag-big-data","tag-big-data-training","tag-data-science","tag-easy-hbase-commands","tag-hbase-commands","tag-hbase-installation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HBase - Soft Introduction and Quickstart - DataFlair<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HBase - Soft Introduction and Quickstart - DataFlair\" \/>\n<meta property=\"og:description\" content=\"This tutorial explains basics of HBase, and its features. Here I tried to explain functionality HBase provides and a quick start about HBase, a Basic tutorial for beginners. You will get to know where&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-13T11:51:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/02\/HBase-Tutorial-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HBase - Soft Introduction and Quickstart - DataFlair","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:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/","og_locale":"en_US","og_type":"article","og_title":"HBase - Soft Introduction and Quickstart - DataFlair","og_description":"This tutorial explains basics of HBase, and its features. Here I tried to explain functionality HBase provides and a quick start about HBase, a Basic tutorial for beginners. You will get to know where&#46;&#46;&#46;","og_url":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2016-06-13T11:51:08+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/02\/HBase-Tutorial-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"HBase &#8211; Soft Introduction and Quickstart","datePublished":"2016-06-13T11:51:08+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/"},"wordCount":498,"commentCount":4,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/02\/HBase-Tutorial-01.jpg","keywords":["apache hbase","basic commands hbase","big data","big data training","data science","easy hbase commands","hbase commands","hbase installation"],"articleSection":["HBase Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/","url":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/","name":"HBase - Soft Introduction and Quickstart - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/02\/HBase-Tutorial-01.jpg","datePublished":"2016-06-13T11:51:08+00:00","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/02\/HBase-Tutorial-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/02\/HBase-Tutorial-01.jpg","width":1200,"height":628,"caption":"HBase - Soft Introduction and Quickstart"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/hbase-soft-introduction-and-quickstart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"HBase Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/hbase\/"},{"@type":"ListItem","position":3,"name":"HBase &#8211; Soft Introduction and Quickstart"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=400"}],"version-history":[{"count":0,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/400\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/42900"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}