

{"id":17003,"date":"2018-05-26T14:22:23","date_gmt":"2018-05-26T14:22:23","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=17003"},"modified":"2018-05-26T14:22:23","modified_gmt":"2018-05-26T14:22:23","slug":"hbase-admin-api","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/","title":{"rendered":"HBase Admin API &#8211; Class Descriptor &amp; Class HBaseAdmin"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In this <strong>HBase tutorial<\/strong>, \u201cHBase Admin API\u201d we will introduce the class which represents the Admin in HBase, called as HBase Admin API. We will also cover the role of Class Descriptor in HBase. Here, along with the methods as well as their relevant descriptions. Also, we will see HBase admin example.<\/span><\/p>\n<p>So, let&#8217;s start HBase Admin API tutorial.<\/p>\n<h2><span style=\"font-weight: 400\">What is HBase Admin API?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">HBase permits <strong>J<\/strong><strong>ava<\/strong> API in communicating with HBase because HBase is written in Java. However, the fastest way to communicate with HBase is Java API. So, here, we are describing the referenced Java Admin API below, that covers the tasks used for managing tables.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Class HBaseAdmin<\/span><\/h2>\n<p><span style=\"font-weight: 400\">A class which represents the Admin in HBase is HBaseAdmin. Basically, it is affiliated to the org.apache.hadoop.hbase.client package. However, a user can perform the tasks of an administrator, Using this class. Also by using Connection.getAdmin() method, they can get the instance of Admin.<\/span><\/p>\n<h3>a. Methods and Description<\/h3>\n<p><strong>i. void createTable(HTableDescriptor desc)<\/strong><br \/>\n<span style=\"font-weight: 400\">In order to create a new table, we use this method.<\/span><\/p>\n<p><strong>ii. void createTable(HTableDescriptor desc, byte[][] splitKeys)<\/strong><br \/>\n<span style=\"font-weight: 400\">However, it also creates a new table along with the initial set of empty regions which is defined by the specified split keys.<\/span><\/p>\n<p><strong>iii. void deleteColumn(byte[] tableName, String columnName)<\/strong><br \/>\n<span style=\"font-weight: 400\">Basically, to delete a column from a table, we use this method.<\/span><\/p>\n<p><strong>iv. void deleteColumn(String tableName, String columnName)<\/strong><br \/>\n<span style=\"font-weight: 400\">This method helps to delete a column from a table.<\/span><\/p>\n<p><strong>v. void deleteTable(String tableName)<\/strong><br \/>\n<span style=\"font-weight: 400\">The method, \u2018void deleteTable\u201d deletes a table.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Class Descriptor in HBase Admin API<\/span><\/h2>\n<p><span style=\"font-weight: 400\">As per its name, it consists of the details about an HBase table, like:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">About the descriptors of all the column families.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Whether the table is a catalog table.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Is the table is read-only?<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">About the maximum size of the mem store.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Also, it tells when the region split should occur.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">About the co-processors associated with it.<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400\">a. Constructor and Summary<\/span><\/h3>\n<p><b>HTableDescriptor(TableName name)<\/b><br \/>\n<span style=\"font-weight: 400\">Basically, it constructs a table descriptor specifying a TableName object.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">b. Methods and Description<\/span><\/h3>\n<p><b>HTableDescriptor addFamily(HColumnDescriptor family)<\/b><br \/>\n<span style=\"font-weight: 400\">In order to add a column family to the given descriptor, we use it.<\/span><\/p>\n<p>So, this was all about HBase Admin API.<\/p>\n<h2><span style=\"font-weight: 400\">Conclusion: HBase Admin API<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Hence,\u00a0in this HBase Administration tutorial, we have seen the whole concept of HBase Admin API. Next, we will see <strong>HBase Client API<\/strong>. However, if any doubt occurs, regarding HBase Admin API, feel free to ask. We will definitely get back to you.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this HBase tutorial, \u201cHBase Admin API\u201d we will introduce the class which represents the Admin in HBase, called as HBase Admin API. We will also cover the role of Class Descriptor in HBase.&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":18472,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[2525,2528,2927,5384,5385,5386,5387,5388,5391,5417,8680],"class_list":["post-17003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hbase","tag-class-descriptor","tag-class-hbase-admin","tag-constructor-and-summary","tag-hbase-admin","tag-hbase-admin-api","tag-hbase-admin-depricated","tag-hbase-admin-examples","tag-hbase-administration","tag-hbase-api","tag-hbase-create-table","tag-methods-and-description"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HBase Admin API - Class Descriptor &amp; Class HBaseAdmin - DataFlair<\/title>\n<meta name=\"description\" content=\"HBase admin API, Class HBaseAdmin, Class Descriptor, HBase administration, constructor in HBase API,Hbase admin example, HBase admin, HBase create table\" \/>\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-admin-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HBase Admin API - Class Descriptor &amp; Class HBaseAdmin - DataFlair\" \/>\n<meta property=\"og:description\" content=\"HBase admin API, Class HBaseAdmin, Class Descriptor, HBase administration, constructor in HBase API,Hbase admin example, HBase admin, HBase create table\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/\" \/>\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=\"2018-05-26T14:22:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/HBase-Admin-API-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=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HBase Admin API - Class Descriptor &amp; Class HBaseAdmin - DataFlair","description":"HBase admin API, Class HBaseAdmin, Class Descriptor, HBase administration, constructor in HBase API,Hbase admin example, HBase admin, HBase create table","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-admin-api\/","og_locale":"en_US","og_type":"article","og_title":"HBase Admin API - Class Descriptor &amp; Class HBaseAdmin - DataFlair","og_description":"HBase admin API, Class HBaseAdmin, Class Descriptor, HBase administration, constructor in HBase API,Hbase admin example, HBase admin, HBase create table","og_url":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-05-26T14:22:23+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/HBase-Admin-API-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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"HBase Admin API &#8211; Class Descriptor &amp; Class HBaseAdmin","datePublished":"2018-05-26T14:22:23+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/"},"wordCount":424,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/HBase-Admin-API-01.jpg","keywords":["Class descriptor","Class HBase Admin","Constructor and summary","HBase Admin","HBase Admin API","HBase admin depricated","HBase admin examples","HBase administration","HBase Api","HBase create table","Methods and Description"],"articleSection":["HBase Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/","url":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/","name":"HBase Admin API - Class Descriptor &amp; Class HBaseAdmin - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/HBase-Admin-API-01.jpg","datePublished":"2018-05-26T14:22:23+00:00","description":"HBase admin API, Class HBaseAdmin, Class Descriptor, HBase administration, constructor in HBase API,Hbase admin example, HBase admin, HBase create table","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/hbase-admin-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/HBase-Admin-API-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/HBase-Admin-API-01.jpg","width":1200,"height":628,"caption":"HBase Admin API - Class Descriptor &amp; Class HBaseAdmin"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/hbase-admin-api\/#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 Admin API &#8211; Class Descriptor &amp; Class HBaseAdmin"}]},{"@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\/17003","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=17003"}],"version-history":[{"count":0,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/17003\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/18472"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=17003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=17003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=17003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}