I want to start Hadoop daemons with PHP instead of terminal.
When i do start-dfs.sh, it works well.
The PHP code I'm using is
<?php
echo shell_exec('/usr/local/hadoop3/sbin/stop-dfs.sh');
?>
the output of the above code is
Starting namenodes on [localhost] starting datanodes. Starting secondary namenodes [chbpc-VirtualBox] .
but when i type the url http://localhost:9870/dfshealth.html#tab-overview
in the browser (to check the status of my Hadoop), it actually did not start despite having the output above.