This topic explains how to install rJava and RJBDC libraries.
When you install rJava and RJDBC libraries with the following command in a notebook cell:
You observe the following error:
ERROR: configuration failed for package 'rJava'
The rJava and RJDBC packages check for Java dependencies and file paths that are not present in the Azure Databricks R directory.
Follow the steps below to install these libraries on running clusters.
Run following commands in a
%sh ls -l /usr/bin/java ls -l /etc/alternatives/java ln -s /usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/default-java R CMD javareconf
Install the rJava and RJDBC packages.
Verify that the rJava package is installed.