Problem scenario
Hadoop is installed on Linux. But hadoop version and other hadoop commands are not working. What should you do?
Solution
Find the hadoop executable in a directory named bin. It is often “/usr/local/hadoop/bin/hadoop”. Ultimately you need to find the directory that houses this “bin.” has a subdirectory with “bin” and “hadoop” inside, run these two commands:
sudo find / -name hadoop -type f
whereis hadoop
Run these commands interactively where “/usr/local/hadoop” is the directory that is the parent of the subdirectory named “bin” that is the parent of the hadoop executable.
…
Continue reading “How Do You Get Hadoop Commands to Work from Any Directory without Using the Full Path?”