Problem scenario
You are administering Linux SUSE machines. You want to see if Hadoop is installed on them. The command hadoop version
does not work.
Solution
Run this command:
sudo find / -name hadoop -type f
From the results above, you can probably find the file and path of the executable. It will likely not be in /var/ or /tmp/. Run this command (where /path/to/ is the directory of Hadoop as found above):
/path/to/hadoop version
Alternate solution
Run this command:whereis hadoop
You will likely find a directory named "bin" in the directory that results from the command above. Inside this subdirectory named bin should be a "hadoop" executable if Hadoop has been installed. Run this command (where /path/to/ is the directory of Hadoop as found in /bin/ above):
/path/to/hadoop version