Guzzle UI deployment runbook - ja-guzzle/guzzle_docs GitHub Wiki
Create following directory on HDP server:
/home/maria_dev/guzzle/api
/home/maria_dev/guzzle/web
Install nodejs v6 in a machine from where guzzle binaries will be built
Edit web/src/services/BaseService.js and update hostname in API_URL to HDP server ip or hostname
Run following command in guzzle gitlab repository to build binaries for api and web project:
./gradlew :api:build :web:build
Upload binaries on HDP server:
scp -P 2222 api/build/libs/api-0.0.1-SNAPSHOT.jar [email protected]:~/guzzle/api/
scp -P 2222 web/build/* [email protected]:~/guzzle/web/
Run following commands to download nodejs and elasticsearch binaries on server in /home/maria_dev/tools directory and extract them:
wget "https://nodejs.org/download/release/v6.14.4/node-v6.14.4-linux-x64.tar.gz"
wget "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz"
Set following path in ~/.bash_profile:
export PATH=~/tools/node-v6.14.4-linux-x64/bin:$PATH
Relogin in HDP server to apply changes in .bash_profile
Install serve node application using following command:
npm install -g [email protected]
Start elasticsearch server (in /home/maria_dev/tools/elasticsearch-6.2.4 directory):
nohup ./bin/elasticsearch &
Create application.yml file (in /home/maria_dev/guzzle/api directory) and update appropriate values for properties phoenixUrl and guzzleConfigDir:
application:
elasticsearch:
targetUri: elasticsearch://localhost:9200
phoenixUrl: "jdbc:phoenix:127.0.0.1:2181:/hbase-unsecure"
guzzleConfigDir: "/guzzle/guzzle_config"
Start guzzle api application (in /home/maria_dev/guzzle/api directory):
nohup java -cp . -jar api-0.0.1-SNAPSHOT.jar &
Start guzzle web application (in /home/maria_dev/guzzle/web directory):
nohup serve -p 8082 -s . &
Run following command to sync guzzle config to elasticsearch:
curl localhost:9090/api/sync