Giter VIP home page Giter VIP logo

hbase_crash_filter's Introduction

What is this?

This is an example of how one can crash an HBase region server with a custom filter. It simply runs the region server out of memory.

To build the JAR:

Simply run the following to build: mvn package

To deploy workflow:

One will deploy the filter by copying the built JAR in target/CrashFilter-0.0.1-SNAPSHOT.jar to their HBase region server lib directory. Then restart the region server.

To crash your region server

One will need to run the filter to crash the region server; to do this, one can request the filter via: echo 'scan "hbase:meta", {FILTER=> com.bloomberg.hbase.CrashFilter.new()}' | hbase shell

One will see the following upon running out of resources (crashing):

  • From hbase shell:
scan "hbase:meta", {FILTER=> com.bloomberg.hbase.CrashFilter.new()}
ROW                   COLUMN+CELL

ERROR: Call id=0, waitTime=59996, operationTimeout=59995 expired.
  • In the standard error log of the RegionServer hosting hbase:meta: java.lang.OutOfMemoryError: Java heap space (After that the regionserver will exit if configured ot exit on out of memory.)

Thanks

Thanks to Lars George for his custom filter example at https://github.com/larsgeorge/hbase-book/blob/cbb4bd05e30fb7956e43d7327ca7086c0578e8e2/ch04/src/main/java/filters/CustomFilter.java

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.