SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
HBCK2: Concepts, trends and recipes
for fixing issues within HBase 2
Wellington Chevreuil
HBase Committer Cloudera HBase SW Engineer
HBCK (1) - Little bit of history
ā€¢ Main tool for general inconsistencies in hbase-1.x
ā€¢ The Swiss Knife for operators
ā€¢ Packaged together with hbase main project
ā€¢ Provides both diagnosing and ļ¬xing commands
ā€¢ Some reports may be misleading, e.g., "holes in the region chain"
ā€¢ Some options can cause damages if not well understood, e.g., "-sidelineBigOverlaps", "-removeParents"
ā€¢ Commands often work independent of Master
ā€¢ Can introduce conļ¬‚icts on meta information maintained by Master
ā€¢ Lack of implementation details on documentation/help guide
HBCK1 Commands user guide:
HBCK2 in a nutshell
ā€¢ Simpler tool
ā€¢ Less ļ¬x commands
ā€¢ No diagnosis command
ā€¢ Requires deeper HBase internal workings from operators
ā€¢ Shipped independently from hbase
ā€¢ Packaged with hbase-operators-tool project
ā€¢ https://github.com/apache/hbase-operator-tools
ā€¢ Can evolve on its own pace
ā€¢ New versions can be run without needing whole hbase upgrade
ā€¢ Master oriented (more later)
ā€¢ More detailed documentation about each command
ā€¢ Still a WIP
ā€¢ By the time of this presentation, there's still no oļ¬ƒcial release for HBCK2
HBCK2 Concepts
ā€¢ AMv2 compliant
ā€¢ HBCK1 does not work with HBase 2 AssignmentManager re-implementation
ā€¢ Thinner, but more interactive commands
ā€¢ No such thing as hbck1 -ļ¬x command
ā€¢ Operators required to ļ¬x an issue at a time
ā€¢ Master oriented
ā€¢ Master must be online
ā€¢ Commands implementation should use Master HbckService as much as possible
ā€¢ However, new commands may initially require a client side implementation, then get ported to Master's
HbckService facade
ā€¢ Fix only, requires other tools for issue diagnosing
ā€¢ Available only for 2.0.3 onwards, and 2.1.1 onwards
HBCK2 Commands user guide:
HBCK2 Usage trends
ā€¢ Master not completing initialisation
ā€¢ Meta/Namespace table "NOT online" issues
ā€¢ Table RIT issues
ā€¢ Procedures stuck
ā€¢ Table in wrong state
ā€¢ Missing regions in META
ā€¢ User induced via incompatible Oļ¬„ineMetaRepair tool
HBCK2 for Operators: How do I get and run it?
ā€¢ Not released so far, requires local build
ā€¢ Requirements
ā€¢ JDK 1.8 or higher
ā€¢ Git
ā€¢ Maven
ā€¢ Checkout related apache github repository:
ā€¢ $ git clone https://github.com/apache/hbase-operator-tools.git
ā€¢ Build HBCK2 upon desired hbase version:
ā€¢ $ mvn -Dhbase.version=2.1.5 clean install
ā€¢ Above command will produce HBCK2 jar ļ¬le under ./hbase-hbck2/target/, named
hbase-hbck2-1.0.0-SNAPSNOT.jar (assuming current version is 1.0.0-SNAPSHOT)
ā€¢ Upload generated jar to the given hbase cluster and run it as below:
ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar
HBCK2 for Operators: Recipes
ā€¢ Meta/Namespace table regions "NOT online"
ā€¢ Due to corruption or manual deletion of /hbase/MasterProcWALs ļ¬les
ā€¢ Meta may miss info about RS assignment
ā€¢ Master logs show regions assigned to an old RS start code
ā€¢ Run HBCK2 assigns command for META region 1588230740:
ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar assigns 1588230740
ā€¢ Similar issue may affect namespace and user tables regions
ā€¢ Affected regions names would be mentioned on log messages similar to above
WARN org.apache.hadoop.hbase.master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPENING,
ts=1550754721289, server=regionserver01.example.com,16020,1550676598448}; ServerCrashProcedures=true. Master startup cannot
progress, in holding-pattern until region onlined.
HBCK2 for Operators: Recipes
ā€¢ Table RIT issues
ā€¢ Usually, due several RSes crashes/slowness while regions are transitioning
ā€¢ Run HBCK2 assigns command for the given region encoded name
11bf6b18ddacdd864728e6cf1199b2a7:
ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar assigns 11bf6b18ddacdd864728e6cf1199b2a7
WARN org.apache.hadoop.hbase.master.assignment.AssignmentManager: STUCK Region-In-Transition rit=OPENING,
location=regionserver01.example.com,16020,1542314816394, table=hbase:acl, region=11bf6b18ddacdd864728e6cf1199b2a7
...
WARN org.apache.hadoop.hbase.ipc.RpcServer: Dropping timed out call: callId: 702 service: ClientService methodName: Mutate size: 272
connection: 1.1.1.1:56492 deadline: 1542316740911 param: region= hbase:meta,,1,
row=hbase:acl,,1404406671604.11bf6b18ddacdd864728e6cf1199b2a7. connection: 1.1.1.1:56492
HBCK2 for Operators: Recipes
ā€¢ Procedures stuck
ā€¢ While troubleshooting causes for RITs, check for procedures attempting to transition regions states:
ā€¢ $ echo "list_procedures" | hbase shell
ā€¢ Output for list_procedures shows WAITING_TIMEOUT and/or procedures running for
days
ā€¢ Other procedures fail to acquire lock owned by one of the stuck procedures:
ā€¢ Run HBCK2 bypass command to get rid of stuck procedures:
ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7
PID Name State Submitted Last_Update Parameters
6 org.apache.hadoop.hbase.master.assignment.UnassignProcedure WAITING_TIMEOUT 2019-03-29 11:15:06 2019-04-08 06:33:35 ...
7 org.apache.hadoop.hbase.master.procedure.DeleteTableProcedure RUNNABLE 2019-03-29 11:24:39 2019-03-29 11:24:39 ...
ERROR: org.apache.hadoop.hbase.procedure2.ProcedureAbortedException: f7910bfc9c9... owned by pid=6, CANNOT run 'this' (pid=347).
HBCK2 for Operators: Recipes
ā€¢ Table in wrong state
ā€¢ Can happen after hanging enable/disable table procedures, or related sub-procedures
ā€¢ Bypassing procedures can lead to this as well
ā€¢ Table indeļ¬nitely in temporary states ENABLING/DISABLING
ā€¢ scan 'hbase:meta', {COLUMN => "table:state"}
ā€¢ enable 'usertable'
ā€¢ Run HBCK2 setTableState to manually bring table state to one of the ļ¬nal ones
ENABLED/DISABLED:
ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar setTableState usertable DISABLEDbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7
usertable column=table:state, timestamp=1555406568751, value=x08x03.
ERROR: Table tableName=usertable, state=ENABLING should be disabled!
HBCK2 for Operators: Recipes
ā€¢ Missing regions in META
ā€¢ Operator induced when running incompatible tool Oļ¬„ineMetaRepair (HBASE-21665)
ā€¢ Typically manifests as holes on the region chain, or in the case of namespace region missing, master fails
initialisation
ā€¢ scan 'hbase:meta', {COLUMN => "table:state", ROWPREFIXFILTER => 'hbase:namespace'}
ā€¢ Still under development through HBASE-22567, HBCK2 addMissingRegionsInMeta
can be used to re-add missing regions:
ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar addMissingRegionInMeta hbase:namespace
ā€¢ Still WIP, so syntax might change.
ā€¢ Check HBASE-22567 for latest developments
e-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7
ROW COLUMN+CELL
0 row(s)
HBCK2 for Contributors
ā€¢ Apache github repository: https://github.com/apache/hbase-operator-tools
ā€¢ HBCK2 deļ¬ned as sub-module hbase-hbck2 of hbase-operator-tools
ā€¢ HBASE-21745
ā€¢ Umbrella jira for tracking potential new HBCK2 features
ā€¢ Faced a new issue in HBase 2? Have a new idea for HBCK2 command?
ā€¢ Great! Contributions are welcome!
ā€¢ Start a [DISCUSS] mail thread on dev@hbase.apache.org
ā€¢ Post a comment on HBASE-21745 describing your idea
e-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7
Thanksļ¼

Mais conteĆŗdo relacionado

Mais procurados

Apache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data ProcessingApache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data Processing
DataWorks Summit
Ā 
The Rise of ZStandard: Apache Spark/Parquet/ORC/Avro
The Rise of ZStandard: Apache Spark/Parquet/ORC/AvroThe Rise of ZStandard: Apache Spark/Parquet/ORC/Avro
The Rise of ZStandard: Apache Spark/Parquet/ORC/Avro
Databricks
Ā 

Mais procurados (20)

Kafka Connect - debezium
Kafka Connect - debeziumKafka Connect - debezium
Kafka Connect - debezium
Ā 
Hive: Loading Data
Hive: Loading DataHive: Loading Data
Hive: Loading Data
Ā 
Top 5 Mistakes When Writing Spark Applications
Top 5 Mistakes When Writing Spark ApplicationsTop 5 Mistakes When Writing Spark Applications
Top 5 Mistakes When Writing Spark Applications
Ā 
Apache Arrow and Pandas UDF on Apache Spark
Apache Arrow and Pandas UDF on Apache SparkApache Arrow and Pandas UDF on Apache Spark
Apache Arrow and Pandas UDF on Apache Spark
Ā 
Parquet performance tuning: the missing guide
Parquet performance tuning: the missing guideParquet performance tuning: the missing guide
Parquet performance tuning: the missing guide
Ā 
UKOUG - 25 years of hints and tips
UKOUG - 25 years of hints and tipsUKOUG - 25 years of hints and tips
UKOUG - 25 years of hints and tips
Ā 
ģ¹“ķ”„ģ¹“, ģ‚°ģ „ģˆ˜ģ „ ė…øķ•˜ģš°
ģ¹“ķ”„ģ¹“, ģ‚°ģ „ģˆ˜ģ „ ė…øķ•˜ģš°ģ¹“ķ”„ģ¹“, ģ‚°ģ „ģˆ˜ģ „ ė…øķ•˜ģš°
ģ¹“ķ”„ģ¹“, ģ‚°ģ „ģˆ˜ģ „ ė…øķ•˜ģš°
Ā 
HDFS on Kubernetesā€”Lessons Learned with Kimoon Kim
HDFS on Kubernetesā€”Lessons Learned with Kimoon KimHDFS on Kubernetesā€”Lessons Learned with Kimoon Kim
HDFS on Kubernetesā€”Lessons Learned with Kimoon Kim
Ā 
Towards Flink 2.0: Unified Batch & Stream Processing - Aljoscha Krettek, Verv...
Towards Flink 2.0: Unified Batch & Stream Processing - Aljoscha Krettek, Verv...Towards Flink 2.0: Unified Batch & Stream Processing - Aljoscha Krettek, Verv...
Towards Flink 2.0: Unified Batch & Stream Processing - Aljoscha Krettek, Verv...
Ā 
Facebook Messages & HBase
Facebook Messages & HBaseFacebook Messages & HBase
Facebook Messages & HBase
Ā 
Apache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data ProcessingApache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data Processing
Ā 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability Practices
Ā 
Rds data lake @ Robinhood
Rds data lake @ Robinhood Rds data lake @ Robinhood
Rds data lake @ Robinhood
Ā 
[211] HBase į„€į…µį„‡į…”į†« į„€į…„į†·į„‰į…¢į†Ø į„ƒį…¦į„‹į…µį„į…„ į„Œį…„į„Œį…”į†¼į„‰į…© (į„€į…©į†¼į„€į…¢į„‹į…­į†¼)
[211] HBase į„€į…µį„‡į…”į†« į„€į…„į†·į„‰į…¢į†Ø į„ƒį…¦į„‹į…µį„į…„ į„Œį…„į„Œį…”į†¼į„‰į…© (į„€į…©į†¼į„€į…¢į„‹į…­į†¼)[211] HBase į„€į…µį„‡į…”į†« į„€į…„į†·į„‰į…¢į†Ø į„ƒį…¦į„‹į…µį„į…„ į„Œį…„į„Œį…”į†¼į„‰į…© (į„€į…©į†¼į„€į…¢į„‹į…­į†¼)
[211] HBase į„€į…µį„‡į…”į†« į„€į…„į†·į„‰į…¢į†Ø į„ƒį…¦į„‹į…µį„į…„ į„Œį…„į„Œį…”į†¼į„‰į…© (į„€į…©į†¼į„€į…¢į„‹į…­į†¼)
Ā 
Deploying Flink on Kubernetes - David Anderson
 Deploying Flink on Kubernetes - David Anderson Deploying Flink on Kubernetes - David Anderson
Deploying Flink on Kubernetes - David Anderson
Ā 
Stephan Ewen - Experiences running Flink at Very Large Scale
Stephan Ewen -  Experiences running Flink at Very Large ScaleStephan Ewen -  Experiences running Flink at Very Large Scale
Stephan Ewen - Experiences running Flink at Very Large Scale
Ā 
The Rise of ZStandard: Apache Spark/Parquet/ORC/Avro
The Rise of ZStandard: Apache Spark/Parquet/ORC/AvroThe Rise of ZStandard: Apache Spark/Parquet/ORC/Avro
The Rise of ZStandard: Apache Spark/Parquet/ORC/Avro
Ā 
Apache phoenix: Past, Present and Future of SQL over HBAse
Apache phoenix: Past, Present and Future of SQL over HBAseApache phoenix: Past, Present and Future of SQL over HBAse
Apache phoenix: Past, Present and Future of SQL over HBAse
Ā 
Tez Shuffle Handler: Shuffling at Scale with Apache Hadoop
Tez Shuffle Handler: Shuffling at Scale with Apache HadoopTez Shuffle Handler: Shuffling at Scale with Apache Hadoop
Tez Shuffle Handler: Shuffling at Scale with Apache Hadoop
Ā 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMaker
Ā 

Semelhante a hbaseconasia2019 HBCK2: Concepts, trends, and recipes for fixing issues in HBase 2

Rails on HBase
Rails on HBaseRails on HBase
Rails on HBase
zpinter
Ā 
Chef Patterns at Bloomberg Scale
Chef Patterns at Bloomberg ScaleChef Patterns at Bloomberg Scale
Chef Patterns at Bloomberg Scale
Chef
Ā 
ApacheCon-HBase-2016
ApacheCon-HBase-2016ApacheCon-HBase-2016
ApacheCon-HBase-2016
Jayesh Thakrar
Ā 

Semelhante a hbaseconasia2019 HBCK2: Concepts, trends, and recipes for fixing issues in HBase 2 (20)

HBaseCon2017 Removable singularity: a story of HBase upgrade in Pinterest
HBaseCon2017 Removable singularity: a story of HBase upgrade in PinterestHBaseCon2017 Removable singularity: a story of HBase upgrade in Pinterest
HBaseCon2017 Removable singularity: a story of HBase upgrade in Pinterest
Ā 
hbaseconasia2017: Removable singularity: a story of HBase upgrade in Pinterest
hbaseconasia2017: Removable singularity: a story of HBase upgrade in Pinteresthbaseconasia2017: Removable singularity: a story of HBase upgrade in Pinterest
hbaseconasia2017: Removable singularity: a story of HBase upgrade in Pinterest
Ā 
HBase tales from the trenches
HBase tales from the trenchesHBase tales from the trenches
HBase tales from the trenches
Ā 
Meet Apache HBase - 2.0
Meet Apache HBase - 2.0Meet Apache HBase - 2.0
Meet Apache HBase - 2.0
Ā 
Meet hbase 2.0
Meet hbase 2.0Meet hbase 2.0
Meet hbase 2.0
Ā 
Meet HBase 2.0
Meet HBase 2.0Meet HBase 2.0
Meet HBase 2.0
Ā 
Apache HBase 1.0 Release
Apache HBase 1.0 ReleaseApache HBase 1.0 Release
Apache HBase 1.0 Release
Ā 
HBaseCon 2012 | HBase Coprocessors ā€“ Deploy Shared Functionality Directly on ...
HBaseCon 2012 | HBase Coprocessors ā€“ Deploy Shared Functionality Directly on ...HBaseCon 2012 | HBase Coprocessors ā€“ Deploy Shared Functionality Directly on ...
HBaseCon 2012 | HBase Coprocessors ā€“ Deploy Shared Functionality Directly on ...
Ā 
H base introduction & development
H base introduction & developmentH base introduction & development
H base introduction & development
Ā 
HBase System Tables / Metadata Info
HBase System Tables / Metadata InfoHBase System Tables / Metadata Info
HBase System Tables / Metadata Info
Ā 
HBase state of the union
HBase   state of the unionHBase   state of the union
HBase state of the union
Ā 
Apache HBase: State of the Union
Apache HBase: State of the UnionApache HBase: State of the Union
Apache HBase: State of the Union
Ā 
HBaseCon 2015: Meet HBase 1.0
HBaseCon 2015: Meet HBase 1.0HBaseCon 2015: Meet HBase 1.0
HBaseCon 2015: Meet HBase 1.0
Ā 
Meet HBase 1.0
Meet HBase 1.0Meet HBase 1.0
Meet HBase 1.0
Ā 
HBase Tales From the Trenches - Short stories about most common HBase operati...
HBase Tales From the Trenches - Short stories about most common HBase operati...HBase Tales From the Trenches - Short stories about most common HBase operati...
HBase Tales From the Trenches - Short stories about most common HBase operati...
Ā 
Debugging Hive with Hadoop-in-the-Cloud by David Chaiken of Altiscale
Debugging Hive with Hadoop-in-the-Cloud by David Chaiken of AltiscaleDebugging Hive with Hadoop-in-the-Cloud by David Chaiken of Altiscale
Debugging Hive with Hadoop-in-the-Cloud by David Chaiken of Altiscale
Ā 
Rails on HBase
Rails on HBaseRails on HBase
Rails on HBase
Ā 
Chef Patterns at Bloomberg Scale
Chef Patterns at Bloomberg ScaleChef Patterns at Bloomberg Scale
Chef Patterns at Bloomberg Scale
Ā 
HBase Status Report - Hadoop Summit Europe 2014
HBase Status Report - Hadoop Summit Europe 2014HBase Status Report - Hadoop Summit Europe 2014
HBase Status Report - Hadoop Summit Europe 2014
Ā 
ApacheCon-HBase-2016
ApacheCon-HBase-2016ApacheCon-HBase-2016
ApacheCon-HBase-2016
Ā 

Mais de Michael Stack

HBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latencies
HBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latenciesHBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latencies
HBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latencies
Michael Stack
Ā 

Mais de Michael Stack (20)

hbaseconasia2019 HBase Table Monitoring and Troubleshooting System on Cloud
hbaseconasia2019 HBase Table Monitoring and Troubleshooting System on Cloudhbaseconasia2019 HBase Table Monitoring and Troubleshooting System on Cloud
hbaseconasia2019 HBase Table Monitoring and Troubleshooting System on Cloud
Ā 
hbaseconasia2019 Recent work on HBase at Pinterest
hbaseconasia2019 Recent work on HBase at Pinteresthbaseconasia2019 Recent work on HBase at Pinterest
hbaseconasia2019 Recent work on HBase at Pinterest
Ā 
hbaseconasia2019 Phoenix Practice in China Life Insurance Co., Ltd
hbaseconasia2019 Phoenix Practice in China Life Insurance Co., Ltdhbaseconasia2019 Phoenix Practice in China Life Insurance Co., Ltd
hbaseconasia2019 Phoenix Practice in China Life Insurance Co., Ltd
Ā 
hbaseconasia2019 HBase at Didi
hbaseconasia2019 HBase at Didihbaseconasia2019 HBase at Didi
hbaseconasia2019 HBase at Didi
Ā 
hbaseconasia2019 The Practice in trillion-level Video Storage and billion-lev...
hbaseconasia2019 The Practice in trillion-level Video Storage and billion-lev...hbaseconasia2019 The Practice in trillion-level Video Storage and billion-lev...
hbaseconasia2019 The Practice in trillion-level Video Storage and billion-lev...
Ā 
hbaseconasia2019 HBase at Tencent
hbaseconasia2019 HBase at Tencenthbaseconasia2019 HBase at Tencent
hbaseconasia2019 HBase at Tencent
Ā 
hbaseconasia2019 Spatio temporal Data Management based on Ali-HBase Ganos and...
hbaseconasia2019 Spatio temporal Data Management based on Ali-HBase Ganos and...hbaseconasia2019 Spatio temporal Data Management based on Ali-HBase Ganos and...
hbaseconasia2019 Spatio temporal Data Management based on Ali-HBase Ganos and...
Ā 
hbaseconasia2019 Bridging the Gap between Big Data System Software Stack and ...
hbaseconasia2019 Bridging the Gap between Big Data System Software Stack and ...hbaseconasia2019 Bridging the Gap between Big Data System Software Stack and ...
hbaseconasia2019 Bridging the Gap between Big Data System Software Stack and ...
Ā 
hbaseconasia2019 Pharos as a Pluggable Secondary Index Component
hbaseconasia2019 Pharos as a Pluggable Secondary Index Componenthbaseconasia2019 Pharos as a Pluggable Secondary Index Component
hbaseconasia2019 Pharos as a Pluggable Secondary Index Component
Ā 
hbaseconasia2019 Phoenix Improvements and Practices on Cloud HBase at Alibaba
hbaseconasia2019 Phoenix Improvements and Practices on Cloud HBase at Alibabahbaseconasia2019 Phoenix Improvements and Practices on Cloud HBase at Alibaba
hbaseconasia2019 Phoenix Improvements and Practices on Cloud HBase at Alibaba
Ā 
hbaseconasia2019 OpenTSDB at Xiaomi
hbaseconasia2019 OpenTSDB at Xiaomihbaseconasia2019 OpenTSDB at Xiaomi
hbaseconasia2019 OpenTSDB at Xiaomi
Ā 
hbaseconasia2019 BigData NoSQL System: ApsaraDB, HBase and Spark
hbaseconasia2019 BigData NoSQL System: ApsaraDB, HBase and Sparkhbaseconasia2019 BigData NoSQL System: ApsaraDB, HBase and Spark
hbaseconasia2019 BigData NoSQL System: ApsaraDB, HBase and Spark
Ā 
hbaseconasia2019 Test-suite for Automating Data-consistency checks on HBase
hbaseconasia2019 Test-suite for Automating Data-consistency checks on HBasehbaseconasia2019 Test-suite for Automating Data-consistency checks on HBase
hbaseconasia2019 Test-suite for Automating Data-consistency checks on HBase
Ā 
hbaseconasia2019 Distributed Bitmap Index Solution
hbaseconasia2019 Distributed Bitmap Index Solutionhbaseconasia2019 Distributed Bitmap Index Solution
hbaseconasia2019 Distributed Bitmap Index Solution
Ā 
hbaseconasia2019 HBase Bucket Cache on Persistent Memory
hbaseconasia2019 HBase Bucket Cache on Persistent Memoryhbaseconasia2019 HBase Bucket Cache on Persistent Memory
hbaseconasia2019 HBase Bucket Cache on Persistent Memory
Ā 
hbaseconasia2019 The Procedure v2 Implementation of WAL Splitting and ACL
hbaseconasia2019 The Procedure v2 Implementation of WAL Splitting and ACLhbaseconasia2019 The Procedure v2 Implementation of WAL Splitting and ACL
hbaseconasia2019 The Procedure v2 Implementation of WAL Splitting and ACL
Ā 
hbaseconasia2019 BDS: A data synchronization platform for HBase
hbaseconasia2019 BDS: A data synchronization platform for HBasehbaseconasia2019 BDS: A data synchronization platform for HBase
hbaseconasia2019 BDS: A data synchronization platform for HBase
Ā 
hbaseconasia2019 Further GC optimization for HBase 2.x: Reading HFileBlock in...
hbaseconasia2019 Further GC optimization for HBase 2.x: Reading HFileBlock in...hbaseconasia2019 Further GC optimization for HBase 2.x: Reading HFileBlock in...
hbaseconasia2019 Further GC optimization for HBase 2.x: Reading HFileBlock in...
Ā 
HBaseConAsia2019 Keynote
HBaseConAsia2019 KeynoteHBaseConAsia2019 Keynote
HBaseConAsia2019 Keynote
Ā 
HBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latencies
HBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latenciesHBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latencies
HBaseConAsia2018 Track3-1: Serving billions of queries in millisecond latencies
Ā 

ƚltimo

valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Ā 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
SUHANI PANDEY
Ā 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
SUHANI PANDEY
Ā 
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
SUHANI PANDEY
Ā 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
SUHANI PANDEY
Ā 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
SUHANI PANDEY
Ā 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
Ā 
Lucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRL
Lucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRLLucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRL
Lucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRL
imonikaupta
Ā 
( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
Ā 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
SUHANI PANDEY
Ā 

ƚltimo (20)

valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ā˜Žļø 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Ā 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Ā 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Ā 
Busty Desiāš”Call Girls in Vasundhara Ghaziabad >ą¼’8448380779 Escort Service
Busty Desiāš”Call Girls in Vasundhara Ghaziabad >ą¼’8448380779 Escort ServiceBusty Desiāš”Call Girls in Vasundhara Ghaziabad >ą¼’8448380779 Escort Service
Busty Desiāš”Call Girls in Vasundhara Ghaziabad >ą¼’8448380779 Escort Service
Ā 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ā 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Ā 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Ā 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
Ā 
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
Ā 
Call Now ā˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ā˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now ā˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ā˜Ž 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Ā 
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Wagholi & High Class Call Girls Pune Neha 8005736733 | 100% Gennuine High Cla...
Ā 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
Ā 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
Ā 
Call Now ā˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ā˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ā˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ā˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Ā 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
Ā 
Lucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRL
Lucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRLLucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRL
Lucknow ā¤CALL GIRL 88759*99948 ā¤CALL GIRLS IN Lucknow ESCORT SERVICEā¤CALL GIRL
Ā 
( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls šŸŽ—ļø 9352988975 Sizzling | Escorts | Girls Are Re...
Ā 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Ā 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
Ā 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
Ā 

hbaseconasia2019 HBCK2: Concepts, trends, and recipes for fixing issues in HBase 2

  • 1.
  • 2. HBCK2: Concepts, trends and recipes for fixing issues within HBase 2 Wellington Chevreuil HBase Committer Cloudera HBase SW Engineer
  • 3. HBCK (1) - Little bit of history ā€¢ Main tool for general inconsistencies in hbase-1.x ā€¢ The Swiss Knife for operators ā€¢ Packaged together with hbase main project ā€¢ Provides both diagnosing and ļ¬xing commands ā€¢ Some reports may be misleading, e.g., "holes in the region chain" ā€¢ Some options can cause damages if not well understood, e.g., "-sidelineBigOverlaps", "-removeParents" ā€¢ Commands often work independent of Master ā€¢ Can introduce conļ¬‚icts on meta information maintained by Master ā€¢ Lack of implementation details on documentation/help guide
  • 5. HBCK2 in a nutshell ā€¢ Simpler tool ā€¢ Less ļ¬x commands ā€¢ No diagnosis command ā€¢ Requires deeper HBase internal workings from operators ā€¢ Shipped independently from hbase ā€¢ Packaged with hbase-operators-tool project ā€¢ https://github.com/apache/hbase-operator-tools ā€¢ Can evolve on its own pace ā€¢ New versions can be run without needing whole hbase upgrade ā€¢ Master oriented (more later) ā€¢ More detailed documentation about each command ā€¢ Still a WIP ā€¢ By the time of this presentation, there's still no oļ¬ƒcial release for HBCK2
  • 6. HBCK2 Concepts ā€¢ AMv2 compliant ā€¢ HBCK1 does not work with HBase 2 AssignmentManager re-implementation ā€¢ Thinner, but more interactive commands ā€¢ No such thing as hbck1 -ļ¬x command ā€¢ Operators required to ļ¬x an issue at a time ā€¢ Master oriented ā€¢ Master must be online ā€¢ Commands implementation should use Master HbckService as much as possible ā€¢ However, new commands may initially require a client side implementation, then get ported to Master's HbckService facade ā€¢ Fix only, requires other tools for issue diagnosing ā€¢ Available only for 2.0.3 onwards, and 2.1.1 onwards
  • 8. HBCK2 Usage trends ā€¢ Master not completing initialisation ā€¢ Meta/Namespace table "NOT online" issues ā€¢ Table RIT issues ā€¢ Procedures stuck ā€¢ Table in wrong state ā€¢ Missing regions in META ā€¢ User induced via incompatible Oļ¬„ineMetaRepair tool
  • 9. HBCK2 for Operators: How do I get and run it? ā€¢ Not released so far, requires local build ā€¢ Requirements ā€¢ JDK 1.8 or higher ā€¢ Git ā€¢ Maven ā€¢ Checkout related apache github repository: ā€¢ $ git clone https://github.com/apache/hbase-operator-tools.git ā€¢ Build HBCK2 upon desired hbase version: ā€¢ $ mvn -Dhbase.version=2.1.5 clean install ā€¢ Above command will produce HBCK2 jar ļ¬le under ./hbase-hbck2/target/, named hbase-hbck2-1.0.0-SNAPSNOT.jar (assuming current version is 1.0.0-SNAPSHOT) ā€¢ Upload generated jar to the given hbase cluster and run it as below: ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar
  • 10. HBCK2 for Operators: Recipes ā€¢ Meta/Namespace table regions "NOT online" ā€¢ Due to corruption or manual deletion of /hbase/MasterProcWALs ļ¬les ā€¢ Meta may miss info about RS assignment ā€¢ Master logs show regions assigned to an old RS start code ā€¢ Run HBCK2 assigns command for META region 1588230740: ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar assigns 1588230740 ā€¢ Similar issue may affect namespace and user tables regions ā€¢ Affected regions names would be mentioned on log messages similar to above WARN org.apache.hadoop.hbase.master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPENING, ts=1550754721289, server=regionserver01.example.com,16020,1550676598448}; ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.
  • 11. HBCK2 for Operators: Recipes ā€¢ Table RIT issues ā€¢ Usually, due several RSes crashes/slowness while regions are transitioning ā€¢ Run HBCK2 assigns command for the given region encoded name 11bf6b18ddacdd864728e6cf1199b2a7: ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar assigns 11bf6b18ddacdd864728e6cf1199b2a7 WARN org.apache.hadoop.hbase.master.assignment.AssignmentManager: STUCK Region-In-Transition rit=OPENING, location=regionserver01.example.com,16020,1542314816394, table=hbase:acl, region=11bf6b18ddacdd864728e6cf1199b2a7 ... WARN org.apache.hadoop.hbase.ipc.RpcServer: Dropping timed out call: callId: 702 service: ClientService methodName: Mutate size: 272 connection: 1.1.1.1:56492 deadline: 1542316740911 param: region= hbase:meta,,1, row=hbase:acl,,1404406671604.11bf6b18ddacdd864728e6cf1199b2a7. connection: 1.1.1.1:56492
  • 12. HBCK2 for Operators: Recipes ā€¢ Procedures stuck ā€¢ While troubleshooting causes for RITs, check for procedures attempting to transition regions states: ā€¢ $ echo "list_procedures" | hbase shell ā€¢ Output for list_procedures shows WAITING_TIMEOUT and/or procedures running for days ā€¢ Other procedures fail to acquire lock owned by one of the stuck procedures: ā€¢ Run HBCK2 bypass command to get rid of stuck procedures: ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7 PID Name State Submitted Last_Update Parameters 6 org.apache.hadoop.hbase.master.assignment.UnassignProcedure WAITING_TIMEOUT 2019-03-29 11:15:06 2019-04-08 06:33:35 ... 7 org.apache.hadoop.hbase.master.procedure.DeleteTableProcedure RUNNABLE 2019-03-29 11:24:39 2019-03-29 11:24:39 ... ERROR: org.apache.hadoop.hbase.procedure2.ProcedureAbortedException: f7910bfc9c9... owned by pid=6, CANNOT run 'this' (pid=347).
  • 13. HBCK2 for Operators: Recipes ā€¢ Table in wrong state ā€¢ Can happen after hanging enable/disable table procedures, or related sub-procedures ā€¢ Bypassing procedures can lead to this as well ā€¢ Table indeļ¬nitely in temporary states ENABLING/DISABLING ā€¢ scan 'hbase:meta', {COLUMN => "table:state"} ā€¢ enable 'usertable' ā€¢ Run HBCK2 setTableState to manually bring table state to one of the ļ¬nal ones ENABLED/DISABLED: ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar setTableState usertable DISABLEDbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7 usertable column=table:state, timestamp=1555406568751, value=x08x03. ERROR: Table tableName=usertable, state=ENABLING should be disabled!
  • 14. HBCK2 for Operators: Recipes ā€¢ Missing regions in META ā€¢ Operator induced when running incompatible tool Oļ¬„ineMetaRepair (HBASE-21665) ā€¢ Typically manifests as holes on the region chain, or in the case of namespace region missing, master fails initialisation ā€¢ scan 'hbase:meta', {COLUMN => "table:state", ROWPREFIXFILTER => 'hbase:namespace'} ā€¢ Still under development through HBASE-22567, HBCK2 addMissingRegionsInMeta can be used to re-add missing regions: ā€¢ $ hbase hbck -j ../hbase-hbck2-1.0.0-SNAPSHOT.jar addMissingRegionInMeta hbase:namespace ā€¢ Still WIP, so syntax might change. ā€¢ Check HBASE-22567 for latest developments e-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7 ROW COLUMN+CELL 0 row(s)
  • 15. HBCK2 for Contributors ā€¢ Apache github repository: https://github.com/apache/hbase-operator-tools ā€¢ HBCK2 deļ¬ned as sub-module hbase-hbck2 of hbase-operator-tools ā€¢ HBASE-21745 ā€¢ Umbrella jira for tracking potential new HBCK2 features ā€¢ Faced a new issue in HBase 2? Have a new idea for HBCK2 command? ā€¢ Great! Contributions are welcome! ā€¢ Start a [DISCUSS] mail thread on dev@hbase.apache.org ā€¢ Post a comment on HBASE-21745 describing your idea e-hbck2-1.0.0-SNAPSHOT.jar bypass 6 7