Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init hbase plugin #154

Merged
merged 3 commits into from
Dec 22, 2020
Merged

Conversation

tangyuhan0816
Copy link
Contributor

Describe what this PR does / why we need it

支持Hbase中间件

Does this pull request fix one issue?

Describe how you did it

org.apache.hadoop.hbase.TableName#valueOf在获取TableName方法进行切点,完成故障模拟

Describe how to verify it

hbase指定表操作异常:./blade create hbase throwCustomException --table table_test --exception java.lang.Exception
hbase指定表操作延迟:./blade create hbase delay --table test_table --time 3

Special notes for reviews

@tiny-x tiny-x added the type/enhancement New feature or request label Nov 24, 2020
@tiny-x tiny-x added this to the v0.10.0 milestone Nov 24, 2020
@tiny-x tiny-x self-requested a review November 24, 2020 10:05
}

private String getTableName(String tableName) {
if (StringUtils.indexOf(tableName, ':') != -1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compile fail, print:

[ERROR] 位置: 类 com.alibaba.chaosblade.exec.common.util.StringUtils
hbase/src/main/java/com/alibaba/chaosblade/exec/plugin/hbase/HbaseEnhancer.java:[99,36] 找不到符号
[ERROR] 符号: 方法 indexOf(java.lang.String,char)

@tiny-x
Copy link
Member

tiny-x commented Nov 25, 2020

Please add the hbase plugin to the pom of the chaosblade-exec-plugin module.

@tiny-x tiny-x self-requested a review December 22, 2020 09:28
@tiny-x tiny-x merged commit 3da316d into chaosblade-io:master Dec 22, 2020
zhucegep pushed a commit to zhucegep/chaosblade-exec-jvm that referenced this pull request Jun 28, 2021
* init hbase plugin

* 添加StringUtil方法,pom.xml添加module

Co-authored-by: tiny-x <185120555@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants