Create Symlinks to Hadoop Directories for the Mac Client
Run Hadoop commands using the hadoop3
keywords.
About this task
hadoop3
symlinks in the usr/local/bin
directory for a Data Fabric client on Mac OS X:Procedure
-
To create the symlinks, run the following commands as
root
:ln -s /opt/mapr/hadoop/hadoop-3.x.x/bin/hadoop /usr/local/bin/hadoop
NOTEIn the preceding command, replacehadoop-3.x.x
with the actual Hadoop 3 version that you installed. -
Add the Hadoop binaries to the
PATH
environment variable. For example, add the following text to the user login shell script such as ~/.bashrc:export PATH=/opt/mapr/bin:/opt/mapr/hadoop/hadoop-3.x.x/bin:${PATH}
NOTEIn the preceding text, replacehadoop-3.x.x
with the actual Hadoop 3 version that you installed.
Results
hadoop
keywords.