<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":145,"date":"2021-07-11T16:20:07","date_gmt":"2021-07-11T16:20:07","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=145"},"modified":"2021-09-15T05:23:11","modified_gmt":"2021-09-15T05:23:11","slug":"how-flume-used-with-hbase","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/","title":{"rendered":"How Flume used with Hbase ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"apache-flume-used-with-hbase\" class=\"color-green\" style=\"text-align: justify;\">Apache Flume used with Hbase<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Apache Flume can be used with HBase utilizing one of the two HBase sinks &#8211;\n<ul>\n<li><b>HBaseSink<\/b>\u00a0(org.apache.flume.sink.hbase.HBaseSink) \u2013 It supports protected HBase clusters and furthrtmore the novel HBase IPC that was presented in the version HBase 0.96.<\/li>\n<li><b>AsyncHBaseSink\u00a0<\/b>(org.apache.flume.sink.hbase.AsyncHBaseSink) &#8211; It has improved performance than HBase sink as it can simply make non-blocking calls to HBase.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"working-of-the-hbasesink\">Working of the HBaseSink<\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>In HBaseSink, a Flume Event is changed over into HBase Increments or Puts. Serializer executes the HBaseEventSerializer which is then instantiated when the sink begins.<\/li>\n<li>For each and every event, sink calls the initialize method in the serializer which then translates the Flume Event into HBase increments and puts to be sent to HBase cluster.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"working-of-the-asynchbasesink\">Working of the AsyncHBaseSink<\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>This sink executes the AsyncHBaseEventSerializer. The initialize method is called just once by the sink when it begins.<\/li>\n<li>The sink invokes the setEvent method and then makes calls to the getIncrements and getActions methods just similar to HBase sink. When the sink pause, the cleanUp method is called by the serializer.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"text-center row\" style=\"text-align: justify;\">\n<div class=\"col-sm-12\">\n<div id=\"bsa-zone_1590522538159-8_123456\"><\/div>\n<\/div>\n<\/div>\n<div class=\"ImageContent\">\n<div class=\"hddn\" style=\"text-align: justify;\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer:Apache Flume can be used with HBase utilizing one of the two HBase sinks&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[369],"tags":[379,452,372,378,408,447,454,455,453,450,448,449,451,364],"class_list":["post-145","post","type-post","status-publish","format-standard","hentry","category-apache-flume","tag-apache-flume-architecture","tag-apache-flume-hbase-sink-example","tag-apache-flume-tutorial","tag-apache-flume-use-cases","tag-flume-configuration-file-example","tag-flume-hbase-custom-serializer","tag-flume-hbase-integration","tag-flume-hbase-sink-json","tag-flume-hbase-source","tag-flume-hdfs-to-hbase","tag-hbase-event-serializer","tag-org-apache-flume-flumeexception-no-row-key-found-in-headers","tag-stream-data-into-hbase","tag-wells-fargo-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Flume used with Hbase ? - Flume Interview Questions and Answers<\/title>\n<meta name=\"description\" content=\"How Flume used with Hbase ? - flume interview questions and answers - HBaseSink (org.apache.flume.sink.hbase.HBaseSink)\" \/>\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.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Flume used with Hbase ? - Flume Interview Questions and Answers\" \/>\n<meta property=\"og:description\" content=\"How Flume used with Hbase ? - flume interview questions and answers - HBaseSink (org.apache.flume.sink.hbase.HBaseSink)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-11T16:20:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-15T05:23:11+00:00\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/\",\"name\":\"How Flume used with Hbase ? - Flume Interview Questions and Answers\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"datePublished\":\"2021-07-11T16:20:07+00:00\",\"dateModified\":\"2021-09-15T05:23:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"How Flume used with Hbase ? - flume interview questions and answers - HBaseSink (org.apache.flume.sink.hbase.HBaseSink)\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Flume used with Hbase ? - Flume Interview Questions and Answers","description":"How Flume used with Hbase ? - flume interview questions and answers - HBaseSink (org.apache.flume.sink.hbase.HBaseSink)","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.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/","og_locale":"en_US","og_type":"article","og_title":"How Flume used with Hbase ? - Flume Interview Questions and Answers","og_description":"How Flume used with Hbase ? - flume interview questions and answers - HBaseSink (org.apache.flume.sink.hbase.HBaseSink)","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/","og_site_name":"Wikitechy","article_published_time":"2021-07-11T16:20:07+00:00","article_modified_time":"2021-09-15T05:23:11+00:00","author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/","name":"How Flume used with Hbase ? - Flume Interview Questions and Answers","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"datePublished":"2021-07-11T16:20:07+00:00","dateModified":"2021-09-15T05:23:11+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"How Flume used with Hbase ? - flume interview questions and answers - HBaseSink (org.apache.flume.sink.hbase.HBaseSink)","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-flume\/how-flume-used-with-hbase\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=145"}],"version-history":[{"count":4,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/145\/revisions"}],"predecessor-version":[{"id":3776,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/145\/revisions\/3776"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}