-
Notifications
You must be signed in to change notification settings - Fork 368
Samza application start and stop
kaliraja edited this page Jun 8, 2021
·
8 revisions
/usr/local/hadoop/bin/yarn node -list -states RUNNING
/usr/local/hadoop/bin/yarn application --list | awk '{print $1 " " $2 " " $6 " " $7 " " $9}'
/usr/local/hadoop/bin/yarn application -kill <application id>
(i.e) /usr/local/hadoop/bin/yarn application -kill application_1533552119356_0040
-
Switch to hduser
ii. cd samza-jobs/{{env}}/extract/application-name-version-distribution.tar.gz
iii. Run the below command by replacinng the properties file name with specific to samza application(jobs).
bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path= config/<properties file name>
(i.e) Below is the example command to start the telemetry-validator samza application:
cd samza-jobs/ntpprod/extract/telemetry-validator-<version>-distribution.tar.gz
bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path= config/telemetry-validator.properties
/usr/local/hadoop/logs/userlogs/<AppID> Get the app id from 2nd step
switch to hduser, /usr/local/hadoop/sbin/yarn-daemon.sh stop nodemanager /usr/local/hadoop/sbin/yarn-daemon.sh start nodemanager
switch to hduser, /usr/local/hadoop/sbin/yarn-daemon.sh stop resourcemanager /usr/local/hadoop/sbin/yarn-daemon.sh start resourcemanager