Rate This Document
Findability
Accuracy
Completeness
Readability

Error "Cannot find'R_HOME" Reported When Compiling Spark

Symptom

An error is reported during Spark compilation:

1
Cannot find 'R_HOME'. Please specify 'R_HOME' or make sure R is properly installed

Key Process and Cause Analysis

The R language support is enabled during Spark compilation. You need to compile and install the R language in the environment.

Conclusion and Solution

  1. Compile and install the R language in the /opt/tools/installed directory, and set the environment variables.

    For details, see Installing the R Language.

  2. Run the Spark compile command again.