The ‘jps’ command is used for the retrieval of the status of daemons running the Hadoop cluster.
To retrieve the status of daemons running in a Hadoop cluster, you can use the following command:
bash
hadoop-daemon.sh [--config confdir] [--script hdfs|yarn] [--hosts hostlistfile] command start|stop|status|etc.
For example, to check the status of the NameNode daemon, you can use:
bash
hadoop-daemon.sh --config <path_to_hadoop_conf_dir> --script hdfs status namenode
This command provides the status of the specified Hadoop daemon (in this case, the NameNode). You need to replace <path_to_hadoop_conf_dir>
with the actual path to your Hadoop configuration directory.