Hi Experts,I know that it's not a good practice to repeat a topic in a FORUM, but I just gave up trying to make RapidMiner + R extension work. =(
So, here is the deal:
Operational System and Hardware - Mac OSX Lion (10.7.1)
- Core i5
Software Versions (all 64 bits)RapidMiner - v5.1.11
R - v2.13.1
Java - v1.6.0_26
Environment Variablesecho $PATH/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Library/Frameworks/R.framework/Libraries/x86_64
==> Here I can have access to libR.dylib in the PATH. Follows the files that I can see:
ls /Library/Frameworks/R.framework/Libraries/x86_64
libR.dylib libRblas.dylib libRlapack.dylib
echo $R_HOME/Library/Frameworks/R.framework/Versions/2.13/Resources
==> In this folder I have access to R executables and some other R installation folders. Follow the output of a ls command:
ls /Library/Frameworks/R.framework/Versions/2.13/Resources
COPYING NEWS.pdf SVN-REVISION etc lib modules
Info.plist R bin fontconfig library share
NEWS Rscript doc include man1
echo $JAVA_HOME/Library/Java/Home
==> Java installation folder. Follow the output of a ls command:
ls /Library/Java/Home
bin bundle lib man
To create this environment variables I used a .plist file (~/.MacOSX/environment.plist) like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>JAVA_HOME</key>
<string>/Library/Java/Home</string>
<key>R_HOME</key>
<string>/Library/Frameworks/R.framework/Versions/2.13/Resources</string>
<key>PATH</key>
<string>/Library/Frameworks/R.framework/Libraries/x86_64</string>
</dict>
</plist>
So, everytime I power on my laptop, open a terminal and type "env" all the environment variables are there.
After preparing the environment, I unziped the folder "rapidminer" and tried to start it in the following way:
TERMINAL$java -jar lib/rapidminer.jar
Follows the main messages:
Sep 14, 2011 10:08:18 PM org.rosuda.JRI.Rengine loadLibrary
INFO: Successfully loaded R library from /Library/Frameworks/R.framework/Versions/2.13/Resources/library/rJava/jri/libjri.jnilib(true)
...
[Fatal Error] :1:1: Content is not allowed in prolog.
...
Sep 14, 2011 10:08:21 PM com.rapidminer.operator.r.ROperatorFactory readROperatorFragments
WARNING: Could not read R fragments from 'file:/Users/leiterenato/Documents/Projetos/Analytic/System/Tools/Rapid-i/rapidminer/lib/', error: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
[Fatal Error] :1:1: Content is not allowed in prolog.
...
[Fatal Error] connections.xml:1:1: Premature end of file.
Sep 14, 2011 10:08:21 PM com.rapidminer.tools.jdbc.connection.DatabaseConnectionService init
WARNING: Failed to read database connections file: org.xml.sax.SAXParseException: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
at com.rapidminer.io.process.XMLTools.parse(XMLTools.java:179)
at com.rapidminer.tools.jdbc.connection.DatabaseConnectionService.init(DatabaseConnectionService.java:92)
at com.rapidminer.RapidMiner.init(RapidMiner.java:474)
at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:221)
at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:505)
at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:488)
ARGUMENT 'LANGUAGE=en' __ignored__
==> Here the RAPID|MINER starter screen freezes. I have to force quit the app! - What is this "prolog" error? Something related to permission on the folder?
- I also did a CHMOD 750 rapidminer.jar.
I think I read all the topics about this and tried to implement other solutions.
None of them seamed to work. =(
If I don't install R extension, everything works perfectly!
Does anyone have any clue about what is going on?
Thanks in advance!
Best Regards,
Renato