Complete one of the following procedures to configure Mahout:
Set Environment Variables for the Current User
JAVA_HOMEthe path of the Java directory.
Set HADOOP_CONF_DIR to thepath of the directory containing the Hadoop configuration parameters.
sudopermissions can add these environment variable entries to the
~/.bashrcfile so that the environment variables will be set each time the user logs in.
Set Environment Variables for all Users on the Node
You can set these environment variables persistently for all users by adding them to the /etc/environment file as root or using sudo.
As root or using sudo, set
/etc/environmentfile.The order of the environment variables in the file doesn't matter.
Run the following command to activate the environment variables for the current session: