Problem scenario
You use start-dfs.sh and start-yarn.sh and there are no errors. They seem to work, but when you use the jps command, you do not see the service you expect. Why isn't a jps process starting when you run one of these scripts?
Solution
The root cause could be a variety of root causes. Here are some potential solutions.
1. In these files, is there an all uppercase stanza like one or both of the following?
HADOOP_SECURE_DN_USER=yarn
HDFS_NAMENODE_USER=root
If it has never worked, you may want to comment out such stanzas.
2. Are you using sudo to start these start-dfs.sh and start-yarn.sh scripts? Try not using sudo before you run the scripts.
3. You want want to set up Hadoop again. This link can help you with deploying open source Hadoop.