最近在预研自动化部署方面的可行性,计划从开源框架中先熟悉一下其他公司是如何实现,偶然发现了GLU,尝试搭建了一下,安装过程中出现了一些问题,作为备忘记录如下:
一、安装环境
os:Solaris 10 5/08 s10x_u5wos_10 X86
bash:GNU bash, version 4.2.0(1)-release (i386-pc-solaris2.10)
JDK:java version "1.6.0_43"
二、安装过程与问题解决
1)解压文件
tar -xvf org.linkedin.glu.packaging-all-4.7.1.tar
错误信息:
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/netty-3.2.2.Final.ja, 785556 bytes, 1535 tape blocks
tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file
x ././@LongLink, 113 bytes, 1 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/org.linkedin.util-co, 153424 bytes, 300 tape blocks
tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file
x ././@LongLink, 115 bytes, 1 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/org.linkedin.util-gr, 306492 bytes, 599 tape blocks
tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file
x ././@LongLink, 122 bytes, 1 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/org.linkedin.zookeep, 67900 bytes, 133 tape blocks
tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file
x ././@LongLink, 118 bytes, 1 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/org.linkedin.zookeep, 52832 bytes, 104 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/slf4j-api-1.6.2.jar, 25689 bytes, 51 tape blocks
tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file
x ././@LongLink, 104 bytes, 1 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/slf4j-log4j12-1.6.2., 9752 bytes, 20 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/org.linkedin.zookeeper-cli-1.5.1/lib/zookeeper-3.4.5.jar, 779974 bytes, 1524 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/zookeeper-config/agent.keystore, 2196 bytes, 5 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/zookeeper-config/config.properties, 1311 bytes, 3 tape blocks
x org.linkedin.glu.packaging-all-4.7.1/setup/zookeeper-config/console.truststore, 906 bytes, 2 tape blocks
解决方式
/usr/sfw/bin/gtar -xvf org.linkedin.glu.packaging-all-4.7.1.tar
2)setup
安装GLU
bash-4.2$ ./tutorial.sh setup
错误信息:
### Suitable JVM found under /usr/jdk/jdk1.6.0_43
### Starting ZooKeeper...
JMX enabled by default
Using config: ./bin/../conf/zoo.cfg
Starting zookeeper ...
STARTED
### Setting up keys and agent configuration...
/org/glu/agents/fabrics/glu-dev-1/config/config.properties - OVERWRITING
/org/glu/agents/fabrics/glu-dev-1/config/agent.keystore - OVERWRITING
/org/glu/agents/fabrics/glu-dev-1/config/console.truststore - OVERWRITING
### Setting agent-1 in glu-dev-1...
/org/glu/agents/names/agent-1/fabric - OVERWRITING
### Stopping ZooKeeper...
JMX enabled by default
Using config: ./bin/../conf/zoo.cfg
Stopping zookeeper ...
./bin/zkServer.sh: line 83: kill: (12148) - No such process
STOPPED
### Initializing Console...
Setting up jetty...
tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
cp: /export/home/liuli/glu/org.linkedin.glu.packaging-all-4.7.1/console-server/jetty-distribution-8.1.10.v20130312/contexts not found
touch: /export/home/liuli/glu/org.linkedin.glu.packaging-all-4.7.1/console-server/jetty-distribution-8.1.10.v20130312/logs/console.log cannot create
chmod: WARNING: can't access /export/home/liuli/glu/org.linkedin.glu.packaging-all-4.7.1/console-server/jetty-distribution-8.1.10.v20130312/bin/*.sh
./bin/consolectl.sh: line 64: /export/home/liuli/glu/org.linkedin.glu.packaging-all-4.7.1/console-server/jetty-distribution-8.1.10.v20130312/bin/jetty.sh: No such file or directory
### Done.
解决方式:
修改consolectl.sh文件
.......
tar -zxf $BASEDIR/glu/repository/tgzs/jetty-distribution-8.1.10.v20130312.tar.gz
......
修改成
......
gzip -d $BASEDIR/glu/repository/tgzs/jetty-distribution-8.1.10.v20130312.tar.gz
tar -xf $BASEDIR/glu/repository/tgzs/jetty-distribution-8.1.10.v20130312.tar
再次执行setup成功。
3)启动GLU
./tutorial.sh start
4)web url
启动后可通过http://localhost:8080/console进入GLU web 页面,默认用户admin/admin
5)监控日志
./tutorial.sh tail
6)停止GLU
./tutorial.sh stop
7)tutorial help
### Suitable JVM found under /usr/jdk/jdk1.6.0_43
Usage: tutorial.sh start|stop|status|tail
8)local docs(本地doc地址)
URI:IP:8080/glu/docs/html/tutorial.html
来源:oschina
链接:https://my.oschina.net/u/262605/blog/199923