Skip to content

Commit

Permalink
Improve hbase and collector starts
Browse files Browse the repository at this point in the history
  • Loading branch information
DaGeRe committed Dec 30, 2024
1 parent f4b14fb commit 46e3aa7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions frameworks/pinpoint-java/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ then
exit 1
fi

if [ -z "${BASE_DIR}" ] || [ ! -d $BASE_DIR ]
then
echo "\$BASE_DIR was empty or not a directory; please set it before calling any function."
fi

function getAgent() {
if [ ! -d "${BASE_DIR}/pinpoint" ]
Expand Down Expand Up @@ -34,12 +38,11 @@ function getHBase() {

function startHBase() {
cd hbase/hbase-2.6.1
bin/start-hbase.sh

wget https://raw.githubusercontent.com/pinpoint-apm/pinpoint/refs/heads/master/hbase/scripts/hbase-create.hbase

bin/hbase shell hbase-create.hbase
bin/start-hbase.sh

}

function startPinot() {
Expand Down Expand Up @@ -77,14 +80,14 @@ function startCollectorAndWeb() {

if [ ! -f pinpoint-collector-starter-${PINPOINT_VERSION}-exec.jar ]
then
wget
wget https://repo1.maven.org/maven2/com/navercorp/pinpoint/pinpoint-collector-starter/${PINPOINT_VERSION}/pinpoint-collector-starter-${PINPOINT_VERSION}-exec.jar
fi

java -jar -Dpinpoint.zookeeper.address=localhost pinpoint-collector-starter-${PINPOINT_VERSION}-exec.jar &> ${BASE_DIR}/collector.log

if [ ! -f pinpoint-web-starter-${PINPOINT_VERSION}-exec.jar ]
then
wget https://repo1.maven.org/maven2/com/navercorp/pinpoint/pinpoint-web-starter/3.0.1/pinpoint-web-starter-${PINPOINT_VERSION}-exec.jar
wget https://repo1.maven.org/maven2/com/navercorp/pinpoint/pinpoint-web-starter/${PINPOINT_VERSION}/pinpoint-web-starter-${PINPOINT_VERSION}-exec.jar
fi

java -jar pinpoint-web-starter-${PINPOINT_VERSION}-exec.jar &> ${BASE_DIR}/web-starter.log
Expand Down

0 comments on commit 46e3aa7

Please sign in to comment.