🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"[SOLVED] rapidminer hanging after installing R extension"

User: "Aj"
New Altair Community Member
Updated by Jocelyn
Hello,

I have Fedora 17 installed in my computer with
"uname -r" giving me the output
3.3.4-5.fc17.i686

I had compiled and installed R, by creating the creating the shared library, i.e
make distclean
"./configure --enable-R-shlib"
make
make install

After that, I have installed "rJava" package
install.packages("rJava")

I have the following commands in ".bashrc" file
export R_HOME=/usr/local/lib/R
export JAVA_HOME=/usr/local/lib/jdk
export LD_LIBRARY_PATH=/usr/local/lib/R/lib
export PATH=$JAVA_HOME/bin:/usr/local/lib/R/lib:/usr/local/lib/R/bin:$PATH

I checked that they are all working, by typing the following commands

echo $R_HOME
/usr/local/lib/R

echo $JAVA_HOME
/usr/local/lib/jdk

echo $LD_LIBRARY_PATH
/usr/local/lib/R/lib

echo $PATH
/usr/local/lib/jdk/bin:/usr/local/lib/R/lib:/usr/local/lib/R/bin:/usr/lib/qt-3.3/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/ajay/.local/bin:/home/ajay/bin

java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode)

Now, I have installed rapidminer-5.2.008 , and then added R extension
Next, on rapidminer pop-up window, I pointed to "libjri.so"
rapidminer.r.native_lib=/usr/local/lib/R/library/rJava/jri/libjri.so

With the above configuration, when I restart rapidminer again, I am getting the following messages. But, rapidminer gets stuck in the loading process where it shows
"Initializing plugin GUI", with the following messages in the command prompt
----------------------------------------------------------------------------------------------------------------------------------------
Sep 28, 2012 10:07:58 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Sep 28, 2012 10:07:59 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Sep 28, 2012 10:07:59 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Sep 28, 2012 10:07:59 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of '/home/ajay/rapidminer/lib/rapidminer.jar'...gotcha!
Sep 28, 2012 10:08:01 PM com.rapidminer.PluginInitR initPlugin
INFO: Trying to load R Library...
Sep 28, 2012 10:08:01 PM org.rosuda.JRI.Rengine <clinit>
INFO: Creating Connection to R...
Sep 28, 2012 10:08:01 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Trying to loaded R library from /usr/local/lib/R/library/rJava/jri/libjri.so
Sep 28, 2012 10:08:01 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Engine ID: class org.rosuda.JRI.Rengine ClassLoader:PluginClassLoader ([file:/home/ajay/.RapidMiner5/managed/rmx_r-5.2.0.jar])
Sep 28, 2012 10:08:01 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Successfully loaded R library from /usr/local/lib/R/library/rJava/jri/libjri.so(true)
Sep 28, 2012 10:08:12 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Sep 28, 2012 10:08:17 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Sep 28, 2012 10:08:17 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Sep 28, 2012 10:08:17 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
ARGUMENT 'LANGUAGE=en' __ignored__
----------------------------------------------------------------------------------------------------------------------------------------

Just to see whether there would be any difference by inputting different dynamic library file , I changed the dynamic library to "libR.so" by changing the file "./.RapidMiner5/5_2_008_rapidminerrc.Linux"
rapidminer.r.native_lib=/usr/local/lib/R/lib/libR.so
With the above change, rapidminer loads, but R extension is not loaded, and I am getting the following messages in command prompt
----------------------------------------------------------------------------------------------------------------------------------------
Sep 28, 2012 10:15:12 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Sep 28, 2012 10:15:12 PM com.rapidminer.tools.I18N <clinit>
INFO: Set locale to en.
Sep 28, 2012 10:15:12 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Sep 28, 2012 10:15:12 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of '/home/ajay/rapidminer/lib/rapidminer.jar'...gotcha!
Sep 28, 2012 10:15:14 PM com.rapidminer.PluginInitR initPlugin
INFO: Trying to load R Library...
Sep 28, 2012 10:15:14 PM org.rosuda.JRI.Rengine <clinit>
INFO: Creating Connection to R...
Sep 28, 2012 10:15:14 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Trying to loaded R library from /usr/local/lib/R/lib/libR.so
Sep 28, 2012 10:15:14 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Engine ID: class org.rosuda.JRI.Rengine ClassLoader:PluginClassLoader ([file:/home/ajay/.RapidMiner5/managed/rmx_r-5.2.0.jar])
Sep 28, 2012 10:15:14 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Successfully loaded R library from /usr/local/lib/R/lib/libR.so(true)
Sep 28, 2012 10:15:23 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Sep 28, 2012 10:15:29 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for ODBC Bridge (e.g. Access)
Sep 28, 2012 10:15:29 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Sep 28, 2012 10:15:29 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Exception in thread "R-Deamon" Sep 28, 2012 10:15:35 PM com.rapidminer.tools.r.JRIRSession initializeEngine
SEVERE: Could not initialize R via JRI. Reason: Unable to initialize R
Sep 28, 2012 10:15:35 PM com.rapidminer.gui.r.RConsole <init>
SEVERE: Could not acquire connection to R: Could not initiate session with native R. Try using server. Reason: Could not initialize R via JRI. Reason: Unable to initialize R
java.lang.UnsatisfiedLinkError: org.rosuda.JRI.Rengine.rniSetupR([Ljava/lang/String;)I
at org.rosuda.JRI.Rengine.rniSetupR(Native Method)
at org.rosuda.JRI.Rengine.setupR(Rengine.java:313)
at org.rosuda.JRI.Rengine.run(Rengine.java:1092)
Sep 28, 2012 10:15:35 PM com.rapidminer.PluginInitR initGui
SEVERE: Could not acquire connection to R. Could not load Console.
----------------------------------------------------------------------------------------------------------------------------------------
I have also tried 5.1 version, and I am getting same errors.

Please help me install R extension with rapidminer as I have spent many hours solving this problems, and have no concrete ideas of how to solve this problem.

Thanks a lot,
Ajay

Find more posts tagged with