aws emrのサービスの再起動方法

emrのマスターノードにsshで入る。

initctl list

でサービス一覧を表示する。


rc stop/waiting
tty (/dev/tty3) start/running, process 5704
tty (/dev/tty2) start/running, process 5702
tty (/dev/tty1) start/running, process 5700
tty (/dev/tty6) start/running, process 5710
tty (/dev/tty5) start/running, process 5708
tty (/dev/tty4) start/running, process 5706
gmetad start/running, process 8756
update-motd stop/waiting
hadoop-mapreduce-historyserver start/running, process 12028
hadoop-yarn-timelineserver start/running, process 11305
plymouth-shutdown stop/waiting
control-alt-delete stop/waiting
livy-server start/running, process 9490
rcS-emergency stop/waiting
kexec-disable stop/waiting
quit-plymouth stop/waiting
hadoop-yarn-resourcemanager start/running, process 11421
hadoop-kms start/running, process 9887
rcS stop/waiting
prefdm stop/waiting
hadoop-httpfs start/running, process 10201
init-system-dbus stop/waiting
print-image-id stop/waiting
ganglia-rrdcached start/running, process 8652
elastic-network-interfaces stop/waiting
splash-manager stop/waiting
hadoop-yarn-proxyserver start/running, process 11199
start-ttys stop/waiting
spark-history-server start/running, process 12118
amazon-ssm-agent start/running, process 3655
hadoop-hdfs-namenode start/running, process 10335
rcS-sulogin stop/waiting
serial (ttyS0) start/running, process 5699
zeppelin start/running, process 25943
gmond start/running, process 8888

このようなリストが表示されるので、対象のサービスを

stop サービス

start サービス

を行うことで、再起動できます。