Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
06c7f1b4
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 大约 1 年
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
06c7f1b4
编写于
5月 26, 2016
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改大量文档说明
上级
da211633
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
63 addition
and
68 deletion
+63
-68
BUILD_DOC.md
BUILD_DOC.md
+58
-3
QA/deploy-sw_analysis-problem.md
QA/deploy-sw_analysis-problem.md
+0
-0
README.md
README.md
+1
-0
skywalking-analysis/bin/How-to-deploy-sw_analysis.md
skywalking-analysis/bin/How-to-deploy-sw_analysis.md
+0
-64
skywalking-webui/src/main/sql/table.mysql
skywalking-webui/src/main/sql/table.mysql
+4
-1
未找到文件。
BUILD_DOC.md
浏览文件 @
06c7f1b4
...
...
@@ -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
```
\ No newline at end of file
```
skywalking-analysis/bin
/deploy-sw_analysis-problem.md
→
QA
/deploy-sw_analysis-problem.md
浏览文件 @
06c7f1b4
文件已移动
README.md
浏览文件 @
06c7f1b4
...
...
@@ -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
)
skywalking-analysis/bin/How-to-deploy-sw_analysis.md
已删除
100644 → 0
浏览文件 @
da211633
# 怎么部署分析模块 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
```
skywalking-webui/src/main/sql/table.mysql
浏览文件 @
06c7f1b4
...
...
@@ -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;
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录