https://aws.amazon.com/premiumsupport/knowledge-center/restart-service-emr/
to check all the services which you can manage
initctl status
[root@host conf.dist]# initctl list
rc stop/waiting
tty (/dev/tty3) start/running, process 4452
tty (/dev/tty2) start/running, process 4450
tty (/dev/tty1) start/running, process 4448
tty (/dev/tty6) start/running, process 4458
tty (/dev/tty5) start/running, process 4456
tty (/dev/tty4) start/running, process 4454
gmetad start/running, process 10054
update-motd stop/waiting
hadoop-mapreduce-historyserver start/running, process 19861
hadoop-yarn-timelineserver start/running, process 19056
hive-server2 start/running, process 17579
plymouth-shutdown stop/waiting
control-alt-delete stop/waiting
hive-hcatalog-server start/running, process 18745
rcS-emergency stop/waiting
kexec-disable stop/waiting
quit-plymouth stop/waiting
hadoop-yarn-resourcemanager start/running, process 19206
hadoop-kms start/running, process 11467
rcS stop/waiting
hue start/running, process 19671
prefdm stop/waiting
hadoop-httpfs start/running, process 11750
init-system-dbus stop/waiting
print-image-id stop/waiting
oozie start/running, process 15441
ganglia-rrdcached start/running, process 9933
elastic-network-interfaces stop/waiting
splash-manager stop/waiting
hadoop-yarn-proxyserver start/running, process 18922
start-ttys stop/waiting
spark-history-server start/running, process 20044
hadoop-hdfs-namenode start/running, process 12003
rcS-sulogin stop/waiting
serial (ttyS0) start/running, process 4447
gmond start/running, process 10073
to restart a service
[root@server conf.dist]# status hive-hcatalog-server
hive-hcatalog-server start/running, process 18745
[root@server conf.dist]# restart hive-hcatalog-server
hive-hcatalog-server start/running, process 18745
[root@server conf.dist]# restart hive-server2
hive-server2 start/running, process 17579
show databases;