반응형
1. pinpoint 압축 해제 및 디렉토리 이동
## pinpoint 압축 해제 및 위치 이동
[root@localhost src]# tar zxvf v2.0.2.tar.g
[root@localhost src]# mv pinpoint-2.0.2 /usr/local/pinpoint
2. hbase 압축 해제 및 심볼릭 링크 지정
## hbase 압축 해제 및 링크 지정
## 편의상 pinpoint/ 내에서 관리하는 것이 편함.
[root@localhost src]# tar zxvf hbase-1.2.7-bin.tar.gz
[root@localhost src]# ln -s /usr/local/src/hbase-1.2.7 /usr/local/pinpoint/hbase
3. 환경 변수 수정
## 환경 변수 수정
[root@localhost conf]# pwd
/usr/local/pinpoint/hbase/hbase-1.2.7/conf
[root@localhost conf]# vim hbase-env.sh
-- 중략 --
## java home 지정
26 # The java implementation to use. Java 1.7+ required.
27 # export JAVA_HOME=/usr/java/jdk1.6.0/
28 export JAVA_HOME=/usr/local/java/
-- 중략 --
34 export HBASE_HEAPSIZE=2G ## 1.5G 이상으로 충분히 확보
-- 중략 --
## 필요없는 옵션 제거
46 # Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
47 #export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
48 #export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
49 export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:ReservedCodeCacheSize=256m"
50 export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:ReservedCodeCacheSize=256m"
4. 데이터 저장 위치 설정
## 데이타 저장 위치 설정
[root@localhost conf]# vim hbase-site.xml
-- 중략 --
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///usr/local/pinpoint/hbase-data/data</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/pinpoint/hbase-data/zookeeper</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
<description>
Controls whether HBase will check for stream capabilities (hflush/hsync).
Disable this if you intend to run on LocalFileSystem, denoted by a rootdir
with the 'file://' scheme, but be mindful of the NOTE below.
WARNING: Setting this to false blinds you to potential data loss and
inconsistent system state in the event of process and/or node failures. If
HBase is complaining of an inability to use hsync or hflush it's most
likely not a false positive.
</description>
</property>
</configuration>
5. zookeeper 폴더 생성
## zookeeper 폴더 생성
[root@localhost conf]# mkdir -p /usr/local/pinpoint/hbase-data/zookeeper
6. hbase 구동
## hbase 구동
[root@localhost hbase-1.2.7]# cd bin
[root@localhost bin]# pwd
/usr/local/pinpoint/hbase/hbase-1.2.7/bin
[root@localhost bin]# ./stop-hbase.sh
stopping hbase.....................
[root@localhost bin]# ./start-hbase.sh
starting master, logging to /usr/local/pinpoint/hbase/hbase-1.2.7/bin/../logs/hbase-root-master-localhost.localdomain.out
## listen port 확인
[root@localhost bin]# netstat -anp | grep java | grep LISTEN
tcp 0 0 ::ffff:127.0.0.1:37307 :::* LISTEN 2986/java
tcp 0 0 :::2181 :::* LISTEN 2986/java
tcp 0 0 :::38696 :::* LISTEN 2986/java
tcp 0 0 :::16010 :::* LISTEN 2986/java
tcp 0 0 ::ffff:127.0.0.1:38283 :::* LISTEN 2986/java
## 2181 : 클라이언트가 zookeeper 연결에 사용하는 포트
## 16010 : hbase 마스터 웹 포트
## 37307 : region server port로 재기동시 재할당 됨.
7. 확인
- http://{Host IP}:16010
반응형
'Monitoring Tools > Pinpoint' 카테고리의 다른 글
5. [pinpoint 설치] hbase 스키마 생성 (0) | 2021.03.17 |
---|---|
4. [pinpoint 설치] tomcat 설치 (0) | 2021.03.17 |
2. [pinpoint 설치] jdk 설치 (0) | 2021.03.17 |
1. [pinpoint 설치] 다운로드 (0) | 2021.03.17 |
0. [pinpoint] 개요 (0) | 2021.03.17 |