반응형
1. war 파일 압축 해제
## tomcat webapps/ 에 war 파일 복사 후 압축 해제
[root@localhost webapps]# rm -rf ROOT/
[root@localhost webapps]# mkdir ROOT
[root@localhost webapps]# chmod 750 ROOT/
[root@localhost webapps]# cd ROOT/
[root@localhost ROOT]# cp -arf /usr/local/src/pinpoint-web-2.0.2.war .
[root@localhost ROOT]# jar xvf pinpoint-web-2.0.2.war
2. 설정 수정
# hbase 주소 및 포트 수정(필요시)
[root@localhost webapps]# vim ROOT/WEB-INF/classes/hbase.properties
...
# hbase.client.host=localhost
# hbase.client.port=2181
...
# pinpoint web 설정 수정(필요시)
[root@localhost webapps]# vim ROOT/WEB-INF/classes/pinpoint-web.properties
...
# config.sendUsage=false <----- disable google analytics
...
3. tomcat 기동
## tomcat 재기동
[root@localhost bin]# ./shutdown.sh
[root@localhost bin]# ./startup.sh
4. 오류 수정
## 재기동 시 exception 발생
[root@localhost bin]# vim ../logs/catalina.out
2020-06-17 14:13:57 [WARN ](o.a.h.u.NativeCodeLoader ) Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2020-06-17 14:14:12 [WARN ](o.a.h.h.z.RecoverableZooKeeper ) Unable to create ZooKeeper Connection
java.net.UnknownHostException: {YOUR_RELEASE_ZOOKEEPER_ADDRESS}: Temporary failure in name resolution
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
at java.net.InetAddress.getAllByName(InetAddress.java:1193)
-- 중략 --
[root@localhost ROOT]# vim /usr/local/pinpoint/tomcat9/webapps/ROOT/WEB-INF/classes/profiles/release/pinpoint-web-env.properties
#pinpoint.zookeeper.address={YOUR_RELEASE_ZOOKEEPER_ADDRESS}
pinpoint.zookeeper.address=127.0.0.1
## 다시 재기동
5. 확인
- http://{Host IP}:8080
반응형
'Monitoring Tools > Pinpoint' 카테고리의 다른 글
8. [pinpoint 설치] agent 설치 (0) | 2021.03.17 |
---|---|
7. [pinpoint 설치] collector 설치 (0) | 2021.03.17 |
5. [pinpoint 설치] hbase 스키마 생성 (0) | 2021.03.17 |
4. [pinpoint 설치] tomcat 설치 (0) | 2021.03.17 |
3. [pinpoint 설치] hbase 설치 (0) | 2021.03.17 |