修改大量文档说明
This commit is contained in:
parent
da2116337b
commit
06c7f1b483
61
BUILD_DOC.md
61
BUILD_DOC.md
|
|
@ -76,6 +76,13 @@ INSERT INTO `system_config` (`config_id`,`conf_key`,`conf_value`,`val_type`,`val
|
|||
# alter table since 2016-4-8
|
||||
...
|
||||
```
|
||||
- 注:2016-5-26日前的版本升级,请升级脚本中的相关片段
|
||||
- execute update scripts, if update from the version which releases before 2016-5-26
|
||||
```
|
||||
# alter table since 2016-5-26
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
### 编译安装SkyWalking Alarm / Build SkyWalking Alarm
|
||||
- 编译工程
|
||||
|
|
@ -140,12 +147,60 @@ $mvn package
|
|||
- startup tomcat of webui
|
||||
|
||||
### 编译安装SkyWalking Analysis / Build SkyWalking Analysis
|
||||
- 暂未提供
|
||||
- next version
|
||||
#### 前置步骤,仅供参考 Prepared deploy skywalking-analysis
|
||||
- 将HBase安装包拷贝到Hadoop安装目录下. Copy HBase installation package to the Hadoop installation directory.
|
||||
- 用HBase的主节点的配置覆盖HBase的安装包里面的配置. Use the configuration of the HBase master node converting the new Hbase package
|
||||
- 在.bash_profile文件添加下面的配置,(需要根据实际情况进行配置). Add the following configuration to .base_profile
|
||||
```
|
||||
export HBASE_HOME=/aifs01/users/hdpusr01/hbase-1.1.2
|
||||
export PATH=$HBASE_HOME/bin:$PATH
|
||||
```
|
||||
- 运行以下命令. Run the command as follow.
|
||||
```
|
||||
source .bash_profile
|
||||
echo ${HBASE_HOME}
|
||||
```
|
||||
|
||||
- 修改配置文件analysis.conf
|
||||
- config 'analysis.conf'
|
||||
```
|
||||
#hbase连接信息
|
||||
hbase.zk_quorum=10.1.235.197,10.1.235.198,10.1.235.199
|
||||
hbase.zk_client_port=29181
|
||||
|
||||
#mysql连接信息
|
||||
mysql.url=jdbc:mysql://10.1.228.202:31316/test
|
||||
mysql.username=devrdbusr21
|
||||
mysql.password=devrdbusr21
|
||||
```
|
||||
|
||||
- 编译工程
|
||||
- build
|
||||
```shell
|
||||
$cd github/sky-walking/skywalking-analysis
|
||||
$mvn package -Dmaven.test.skip=true
|
||||
```
|
||||
|
||||
- 上传skywalking-analysis-1.0-SNAPSHOT.jar. Upload the skywalking-analysis-1.0-SNAPSHOT.jar
|
||||
- 上传start-analysis.sh. Upload the start-analysis.sh
|
||||
- 修改权限. Change mode start-analysis.sh
|
||||
```
|
||||
> chmod +x start-analysis.sh
|
||||
```
|
||||
|
||||
- 运行脚本. Run the command.
|
||||
```
|
||||
>./start-analysis.sh
|
||||
```
|
||||
|
||||
- 查看日志. tail the log
|
||||
```
|
||||
skywalking-analysis/log> tail -f map-reduce.log
|
||||
```
|
||||
|
||||
## 使用maven发布各插件工程 / build and deploy plugins
|
||||
- build and deploy skywalking-sdk-plugin(dubbo-plugin,spring-plugin,web-plugin,jdbc-plugin,httpclient-4.2.x-plugin,httpclient-4.3.x-plugin, etc.)
|
||||
- 请跳过maven.test环节,避免打包失败
|
||||
```properties
|
||||
-Dmaven.test.skip=true
|
||||
```
|
||||
```
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ export SKYWALKING_RUN=true
|
|||
- [SkyWalking SDK是否已经工作? Is SkyWalking SDK Running?](QA/IS_RUNNING.md)
|
||||
- [tid在web-ui上无法查询. tid can't be search on web-ui](QA/TID_CANNOT_BE_SEARCH.md)
|
||||
- [SkyWalking Server的运行情况. The status of SkyWalking Server](QA/SERVER_RUNNING_STAUTS.md)
|
||||
- [SkyWalking Analysis部署运行常见问题. The FAQ of SkyWalking Analysis deployment](QA/deploy-sw_analysis-problem.md)
|
||||
|
||||
# 源代码说明
|
||||
* [追踪日志明细存储结构说明. the storage structure of tracking logs](skywalking-server/doc/hbase_table_desc.md)
|
||||
|
|
|
|||
|
|
@ -1,64 +0,0 @@
|
|||
# 怎么部署分析模块 How to deploy skywalking-analysis
|
||||
|
||||
## 前置步骤 Prepared deploy skywalking-analysis
|
||||
1. 将HBase安装包拷贝到Hadoop安装目录下. Copy HBase installation package to the Hadoop installation directory.
|
||||
2. 用HBase的主节点的配置覆盖HBase的安装包里面的配置. Use the configuration of the HBase master node converting the new Hbase package
|
||||
3. 在.bash_profile文件添加下面的配置,(需要根据实际情况进行配置). Add the following configuration to .base_profile
|
||||
```
|
||||
export HBASE_HOME=/aifs01/users/hdpusr01/hbase-1.1.2
|
||||
export PATH=$HBASE_HOME/bin:$PATH
|
||||
```
|
||||
4. 运行以下命令. Run the command as follow.
|
||||
```
|
||||
source .bash_profile
|
||||
echo ${HBASE_HOME}
|
||||
```
|
||||
|
||||
|
||||
## 部署模块 Deploy package
|
||||
1. git clone analysis工程. Clone the analysis code from github
|
||||
2. 根据实际情况修改src/main/resources目录下的analysis.conf. Modify the analysis.conf file that inside src/main/resources directory.
|
||||
```
|
||||
hbase.zk_quorum=10.1.235.197,10.1.235.198,10.1.235.199
|
||||
hbase.zk_client_port=29181
|
||||
|
||||
mysql.url=jdbc:mysql://10.1.228.202:31316/test
|
||||
mysql.username=devrdbusr21
|
||||
mysql.password=devrdbusr21
|
||||
```
|
||||
3. 运行skywalking-webui包下的创建Table的命令. Run the create table sql script.
|
||||
```
|
||||
# 新增sw_chain_detail,用于调用链分析表
|
||||
CREATE TABLE `sw_chain_detail` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`viewpoint` varchar(8192) COLLATE utf8_bin DEFAULT NULL,
|
||||
`treeId` varchar(40) COLLATE utf8_bin DEFAULT NULL,
|
||||
`uid` varchar(32) COLLATE utf8_bin DEFAULT NULL,
|
||||
`traceLevelId` varchar(32) COLLATE utf8_bin DEFAULT NULL,
|
||||
`create_time` timestamp NULL DEFAULT NULL,
|
||||
`update_time` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id_UNIQUE` (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=8146 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
SELECT * FROM sw_chain_detail;
|
||||
```
|
||||
4. 打包. Package the project
|
||||
|
||||
```
|
||||
package -Dmaven.test.skip=true
|
||||
```
|
||||
5. 上传skywalking-analysis-1.0-SNAPSHOT.jar. Upload the skywalking-analysis-1.0-SNAPSHOT.jar
|
||||
6. 上传start-analysis.sh. Upload the start-analysis.sh
|
||||
7. 修改权限. Change mode start-analysis.sh
|
||||
```
|
||||
> chmod +x start-analysis.sh
|
||||
```
|
||||
8. 运行脚本. Run the command.
|
||||
```
|
||||
>./start-analysis.sh
|
||||
```
|
||||
9. 查看日志. tail the log
|
||||
```
|
||||
skywalking-analysis/log> tail -1f map-reduce.log
|
||||
```
|
||||
|
||||
|
|
@ -251,7 +251,11 @@ ALTER TABLE `application_info`
|
|||
ADD COLUMN `update_time` DATETIME NULL AFTER `sts`,
|
||||
ADD COLUMN `app_desc` VARCHAR(1024) NULL AFTER `update_time`;
|
||||
|
||||
# alter table since 2016-5-26
|
||||
# 新增sw_chain_detail,用于调用链分析表
|
||||
-- -----------------------------------------------------
|
||||
-- Table `sw_chain_detail`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE `sw_chain_detail` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`viewpoint` varchar(8192) COLLATE utf8_bin DEFAULT NULL,
|
||||
|
|
@ -263,4 +267,3 @@ CREATE TABLE `sw_chain_detail` (
|
|||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id_UNIQUE` (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=8146 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
SELECT * FROM sw_chain_detail;
|
||||
Loading…
Reference in New Issue