# get the zipkin source and change to its directory $ git clone https://github.com/openzipkin/zipkin;cd zipkin # start the query server in a new terminal session or tab $ ./bin/query ##### 数据从DB中查询出来,用给WEB展示# start the collector server in a new terminal session or tab $ ./bin/collector ##### 将数据从kafka中读取出来,并写入到DB中# start the web server in a new terminal session or tab $ ./bin/web ##### 将数据从WEB中展示出来# create dummy traces $ ./bin/tracegen ##### 测试使用,向DB中写入数据,以供测试# open the ui and look at them! $ open http://localhost:8080/
官方提供的数据库因为有问题,我们再此不用,使用mysql代替。 (四)数据库的配置:
yum -y install mysql
添加zipkin用户,定义密码123456。
进入数据库,执行以下操作
SET GLOBAL innodb_file_format=Barracuda
show global variables like 'innodb_file_format'
create database if not exists zipkin
找到zipkin-anormdb/src/main/resources/mysql.sql导入进去,因为文件不大,可以直接复制里面的语句操作。 (五)编写启动脚本: