Specifying Environment Variables
About this task
env.sh
file in
/usr/local/mapr-loopbacknfs/conf
. You cannot simply copy the
env.sh
file from a server node in the cluster because the MAPR_HOME
setting would be different.Complete the following steps to specify environment variables:
Procedure
-
On a server node in the MapR cluster, locate the
env.sh
file in the/opt/mapr/conf
directory. -
Retrieve the MAPR_SUBNETS and JAVA_HOME settings from the server file and clone
them to
/usr/local/mapr-loopbacknfs/conf/env.sh
on the client node. - Change the JAVA_HOME setting to point to the location where Java is installed on the client.
-
Add the following lines to the client node
env.sh
file:export MAPR_HOME=/usr/local/mapr-loopbacknfs export MAPR_TICKETFILE_LOCATION=/usr/local/mapr-loopbacknfs/initscripts/mapr-loopbacknfs/longlived_ticket
-
Save and close the
env.sh
file.