I'm trying to automate stopping, formatting and starting HDFS and MapReduce services on a Cloudera Hadoop 4.4 cluster, using a bash script.
It's easy to kill HDFS and MapReduce processes using "pkill -U hdfs && pkill -U mapred", but how can I start those processes again, without using the Cloudera Manager GUI?