pinpoint HBASE 数据库初始化

1, pinpoint 1.9之前只支持hbase 1.x。 亲测使用hbase 2.x不兼容

2,初始化hbase方式有2种

2.1 使用hbase shell执行 hbase-create.hbase 此方式网上很多例子 不在介绍

2.2  1.9 版本后使用JAVA程序执行 (测试时,使用master分支版本自己编译的)

1) 下载master 版本1.9.0-snapshot 编译好项目2)创建目录 repo-pinpoint-hbase-manager 上传 hbase-schema-1.9.0.xml & pinpoint-hbase-schema-manager-1.9.0-SNAPSHOT.jar

 

 


[admin@PRO:repo-pinpoint-hbase-manager]17:17:41$ java -jar pinpoint-hbase-schema-manager-1.9.0-SNAPSHOT.jar --hbase.host:hb-1.hbase.rds.aliyuncs.com --hbase.port=2181 init
[INFO ] HbaseSchemaManager> Wired for live run.
[INFO ] HbaseSchemaManager> Launched with arguments : [--hbase.host:hb-1.hbase.rds.aliyuncs.com, --hbase.port=2181, init]
[INFO ] HbaseSchemaManager> Running hbase schema manager init task.
[INFO ] HbaseSchemaManager> Namespace : default
[INFO ] HbaseSchemaManager> Hbase schema management initialized.
[admin@PRO:repo-pinpoint-hbase-manager]17:18:02$ java -jar pinpoint-hbase-schema-manager-1.9.0-SNAPSHOT.jar --hbase.host:hb-1.hbase.rds.aliyuncs.com --hbase.port=2181 update  hbase-schema-1.9.0.xml
[INFO ] HbaseSchemaManager> Wired for live run.
[INFO ] HbaseSchemaManager> Launched with arguments : [--hbase.host:hb-1.hbase.rds.aliyuncs.com, --hbase.port=2181, update, hbase-schema-1.9.0.xml]
[INFO ] HbaseSchemaManager> Running hbase schema manager update task.
[INFO ] HbaseSchemaManager> Namespace : default, compression algorithm : none
[INFO ] HbaseSchemaManager> Loading custom change sets from [hbase-schema-1.9.0.xml].
[INFO ] HbaseSchemaManager> [default] Hbase schema update started.
[INFO ] HbaseSchemaManager> [default] Schema change logs not found.
[INFO ] HbaseSchemaManager> [default] Initializing hbase schema.
[INFO ] HbaseSchemaManager> [default] Applying change sets : [pinpoint-1.9.0_1]
[INFO ] HbaseSchemaManager> Creating AgentInfo table...
[INFO ] HbaseSchemaManager> AgentInfo table created.
[INFO ] HbaseSchemaManager> Creating AgentStatV2 table...
[INFO ] HbaseSchemaManager> AgentStatV2 table created with 64 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApplicationStatAggre table...
[INFO ] HbaseSchemaManager> ApplicationStatAggre table created with 64 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApplicationIndex table...
[INFO ] HbaseSchemaManager> ApplicationIndex table created.
[INFO ] HbaseSchemaManager> Creating AgentLifeCycle table...
[INFO ] HbaseSchemaManager> AgentLifeCycle table created.
[INFO ] HbaseSchemaManager> Creating AgentEvent table...
[INFO ] HbaseSchemaManager> AgentEvent table created.
[INFO ] HbaseSchemaManager> Creating StringMetaData table...
[INFO ] HbaseSchemaManager> StringMetaData table created with 8 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApiMetaData table...
[INFO ] HbaseSchemaManager> ApiMetaData table created with 8 splitKeys.
[INFO ] HbaseSchemaManager> Creating SqlMetaData_Ver2 table...
[INFO ] HbaseSchemaManager> SqlMetaData_Ver2 table created with 16 splitKeys.
[INFO ] HbaseSchemaManager> Creating TraceV2 table...
[INFO ] HbaseSchemaManager> TraceV2 table created with 256 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApplicationTraceIndex table...
[INFO ] HbaseSchemaManager> ApplicationTraceIndex table created with 16 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApplicationMapStatisticsCaller_Ver2 table...
[INFO ] HbaseSchemaManager> ApplicationMapStatisticsCaller_Ver2 table created with 16 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApplicationMapStatisticsCallee_Ver2 table...
[INFO ] HbaseSchemaManager> ApplicationMapStatisticsCallee_Ver2 table created with 16 splitKeys.
[INFO ] HbaseSchemaManager> Creating ApplicationMapStatisticsSelf_Ver2 table...
[INFO ] HbaseSchemaManager> ApplicationMapStatisticsSelf_Ver2 table created with 8 splitKeys.
[INFO ] HbaseSchemaManager> Creating HostApplicationMap_Ver2 table...
[INFO ] HbaseSchemaManager> HostApplicationMap_Ver2 table created with 4 splitKeys.
[INFO ] HbaseSchemaManager> Hbase schema successfully updated.
 

你可能感兴趣的:(技术)