Step 5: Set Environment Variables

Set environment variables for MapR. The /opt/mapr/conf/env.sh script looks for the directory where Java is installed and sets JAVA_HOME automatically. However, if JAVA_HOME is not set by running the env.sh script, edit /opt/mapr/conf/env.sh to set JAVA_HOME. This variable must be set before starting ZooKeeper or Warden.