Appearance
Starting the ybrelay Service Manually
If the environment variable JAVA_HOME
is not set, ybrelay-init
returns the following warnings:
ybrelay-init
INFO: Creating System Group: ybrelay with GID: 923
INFO: Creating System User: ybrelay with UID: 923
INFO: Creating Systemd service
WARN: JAVA_HOME environment variable not set
WARN: Please edit the ybrelay.config
WARN: Service will be not enabled
The following procedure explains how to set JAVA_HOME
in the ybrelay.config
file, then start the service manually. ybrelay
cannot be started with ybrelay-init
after the ybrelay.config
file has been edited.
- Edit the
/opt/ybtools/config/ybrelay.config
file and set theJAVA_HOME
path:
JAVA_HOME=“/opt/java/jre1.8.0_91”
- After editing the configuration, enable and start the service:
systemctl enable ybrelay.service
Created symlink from /etc/systemd/system/multi-user.target.wants/ybrelay.service to /etc/systemd/system/ybrelay.service
systemctl start ybrelay.service
- Verify that the
ybrelay.service
was started properly:
systemctl status ybrelay.service
ybrelay.service - Yellowbrick Data Load Relay Service
Loaded: loaded (/etc/systemd/system/ybrelay.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-11-14 18:40:33 UTC; 4s ago
Main PID: 3196 (java)
CGroup: /system.slice/ybrelay.service
└─3196 /opt/java/jre1.8.0_91/bin/java -Dvisualvm.display.name=YB:Relay -Xms512m -Xmx8g -ea -classpath
/opt/ybtools/etc:/opt/ybtools/lib/relay-service-3.2.0-SNAPSHOT.jar:/opt/ybtools/lib/client-com...
Nov 14 18:40:33 rhel7.localdomain systemd[1]: Started Yellowbrick Data Load Relay Service.
Nov 14 18:40:33 rhel7.localdomain ybrelay[3196]: Warning; java is not in your PATH. Using JAVA_HOME fallback:
/opt/java/jre1.8.0_91/bin.
Parent topic:Setting Up the ybrelay Service