Running Hadoop Commands on a Mac and Windows Client

The location from which you run Hadoop commands depends on your machine.

When you run Hadoop commands on the Mac and Windows client, use the Hadoop 3 version to run MapReduce version 2 applications.

To run the.. Run the command from this location:
Hadoop 3 version of the command

On Windows: %MAPR_HOME%\hadoop\hadoop-3.x.x\bin

On Mac: /opt/mapr/hadoop/hadoop-3.x.x/bin

On Linux installations, the installer creates symlinks to the Hadoop directories by default. On Mac, you can create the symlinks. Once the symlinks are created, you can specify the version of the Hadoop command as mentioned in the Hadoop command documentation.

IMPORTANT
For Windows:
  • The user that runs Hadoop commands from the Hadoop 3 directory cannot have a space or a hyphen (-) in the user name.
  • The native Hadoop library is not present on Windows. Therefore, the hadoop fs -getmerge command is not available.