Simple Question about Init Rapidminer

flyfireflyfire Member Posts: 11 Contributor II
edited November 2018 in Help
Hi everyone.
I'm back for help after sevral days of using Rapidminer in programs. Rapidminer is a great tool, and its interface is simple too!
Here is my question. Where I init Rapidminer in programs, and check the track information in the command window, I find out that rapidminer inits many other components like weka, text mining, pmml, R and so on, which I will not use. Here is the message.
2010-11-22 15:08:10 CONFIG: Locale not specified explicitly. Set default locale to US. (RapidMiner.init())
2010-11-22 15:08:10 CONFIG: Initializing I18N (RapidMiner.splashMessage())
2010-11-22 15:08:10 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())
2010-11-22 15:08:10 INFO: Property rapidminer.home is not set. Guessing. (Launcher.ensureRapidMinerHomeSet())
2010-11-22 15:08:10 INFO: Trying parent directory of 'D:\java\Workspace\DataMiningProc\src\lib\launcher.jar'...gotcha! (Launcher.ensureRapidMinerHomeSet())
2010-11-22 15:08:10 INFO: Trying parent directory of 'D:\java\Workspace\DataMiningProc\src\lib\rapidminer.jar'...gotcha! (Launcher.ensureRapidMinerHomeSet())
2010-11-22 15:08:10 CONFIG: Reading Configuration Files (RapidMiner.splashMessage())
2010-11-22 15:08:10 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadAllRCFiles())
2010-11-22 15:08:10 CONFIG: Execution mode UNKNOWN does not permit file access. Ignoring all rcfiles. (ParameterService.loadAllRCFiles())
2010-11-22 15:08:10 CONFIG: Registering Plugins (RapidMiner.splashMessage())
2010-11-22 15:08:10 CONFIG: Read extension state. (ManagedExtension.readConfiguration())
2010-11-22 15:08:10 CONFIG: Plugin directory D:\java\Workspace\DataMiningProc\src\lib\plugins does not exist. (Plugin.findPlugins())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'Text Processing'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_text-5.0.7.jar!/com/rapidminer/resources/parserulesTextProcessing.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'PMML'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_pmml-5.0.2.jar!/com/rapidminer/resources/parserulesPMML.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'Weka'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_weka-5.0.1.jar!/com/rapidminer/resources/parserulesWekaExtension.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'PaREn Wizard'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_paren-5.0.1.jar!/com/rapidminer/resources/parserulesParen.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'R Extension'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_r-5.0.1.jar!/com/rapidminer/resources/parserulesR.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'Web Mining'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_web-5.0.4.jar!/com/rapidminer/resources/parserulesWeb.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'Reporting'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_reporting-5.0.2.jar!/com/rapidminer/resources/parserulesReporting.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Loading renderers from 'Series'. (RendererService.init())
2010-11-22 15:08:10 CONFIG: Reading parse rules from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_series-5.0.2.jar!/com/rapidminer/resources/parserulesValueSeries.xml (XMLImporter.importParseRules())
2010-11-22 15:08:10 CONFIG: Initializing Operators (RapidMiner.splashMessage())
2010-11-22 15:08:10 CONFIG: Loading operators from 'OperatorsCore.xml'. (OperatorService.registerOperators())
2010-11-22 15:08:10 CONFIG: Loading operator documentation from jar:file:/D:/java/Workspace/DataMiningProc/src/lib/rapidminer.jar!/com/rapidminer/resources/i18n/OperatorsCoreDocumentation.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:11 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_parallel-5.0.1.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:11 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_parallel-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocParallel.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:11 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_text-5.0.7.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:11 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_text-5.0.7.jar!/com/rapidminer/resources/i18n/OperatorsDocTextProcessing.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:12 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_pmml-5.0.2.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:12 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_pmml-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocPMML.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:12 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_weka-5.0.1.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:12 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_weka-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocWekaExtension.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:12 CONFIG: Creating operators from factory com.rapidminer.tools.WekaOperatorFactory (OperatorService.parseOperators())
2010-11-22 15:08:13 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_paren-5.0.1.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:13 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_paren-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocParen.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:13 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_r-5.0.1.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:13 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_r-5.0.1.jar!/com/rapidminer/resources/i18n/OperatorsDocR.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:13 CONFIG: Creating operators from factory com.rapidminer.operator.r.ROperatorFactory (OperatorService.parseOperators())
2010-11-22 15:08:13 INFO: No operator descriptor specified for plugin Community. Trying plugin initializtation class com.rapidminer.community.CommunityPluginInit. (Plugin.registerOperators())
2010-11-22 15:08:13 WARNING: No operator descriptor defined for: Community (Plugin.registerOperators())
2010-11-22 15:08:13 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_web-5.0.4.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:13 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_web-5.0.4.jar!/com/rapidminer/resources/i18n/OperatorsDocWeb.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:13 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_reporting-5.0.2.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:13 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_reporting-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocReporting.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:13 CONFIG: Loading operators from 'C:\Users\20\.RapidMiner5\managed\rmx_series-5.0.2.jar'. (OperatorService.registerOperators())
2010-11-22 15:08:13 CONFIG: Loading operator documentation from jar:file:C:\Users\20\.RapidMiner5\managed\rmx_series-5.0.2.jar!/com/rapidminer/resources/i18n/OperatorsDocValueSeries.xml. (OperatorDocBundle$XMLControl.newBundle())
2010-11-22 15:08:14 CONFIG: Number of registered operator classes: 575; number of registered operator descriptions: 715; number of replacements: 533 (OperatorService.init())
2010-11-22 15:08:14 CONFIG: Cannot access file system. Bypassing loading of operator usage statistics. (UsageStatistics.load())
2010-11-22 15:08:14 CONFIG: Initializing XML Transformation Rules (RapidMiner.splashMessage())
2010-11-22 15:08:14 CONFIG: Reading parse rules from jar:file:/D:/java/Workspace/DataMiningProc/src/lib/rapidminer.jar!/com/rapidminer/resources/parserules.xml (XMLImporter.importParseRules())
2010-11-22 15:08:14 CONFIG: Loading JDBC Drivers (RapidMiner.splashMessage())
2010-11-22 15:08:14 CONFIG: Loading JDBC driver information from 'resource jdbc_properties.xml'. (DatabaseService.loadJDBCProperties())
2010-11-22 15:08:14 CONFIG: Loaded JDBC driver com.mysql.jdbc.Driver (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 INFO: JDBC driver org.postgresql.Driver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 INFO: JDBC driver net.sourceforge.jtds.jdbc.Driver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 INFO: JDBC driver org.hsqldb.jdbcDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)' (JDBCProperties.<init>())
2010-11-22 15:08:14 INFO: JDBC driver net.sourceforge.jtds.jdbc.Driver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 INFO: JDBC driver com.ingres.jdbc.IngresDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed. (JDBCProperties.registerDrivers())
2010-11-22 15:08:14 CONFIG: Ignoring jdbc_properties.xml files in execution mode UNKNOWN. (DatabaseService.init())
2010-11-22 15:08:14 CONFIG: Initializing Data Repository (RapidMiner.splashMessage())
2010-11-22 15:08:14 INFO: Cannot access file system in execution mode UNKNOWN. Not loading repositories. (RepositoryManager.load())
2010-11-22 15:08:14 CONFIG: Initializing XML Serialization (RapidMiner.splashMessage())
2010-11-22 15:08:14 CONFIG: Defining XML Serialization Alias Pairs (RapidMiner.splashMessage())
2010-11-22 15:08:14 CONFIG: Initializing Renderers (RapidMiner.splashMessage())
2010-11-22 15:08:14 CONFIG: Loading renderers from 'file:/D:/java/Workspace/DataMiningProc/src/lib/rapidminer.jar!/com/rapidminer/resources/ioobjects.xml'. (RendererService.init())
2010-11-22 15:08:14 CONFIG: Loading renderers from 'ioobjects.xml'. (RendererService.init())
They are not expected to init in my programs in order to reduce the running time.
I tried this, but it didn't work.
System.setProperty("rapidminer.init.weka","false");
RapidMiner.init();
If code like above one can work, please tell all to avoid components like weka, parallel, text, paren, series and web initing. Those initializing information seems comfusing, although doesn't return an error.

May someone so nice to figure out a way for me?

Best
   Flyfire

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi Flywire,
    actually we have already encountered the same problem a few weaks ago and with RapidMiner 5.1 there will be a flag that avoids initialization of the Extensions.
    By the way: In which programs are you including RapidMiner? Is any new and cool Open Source software coming?


    Greetings,
      Sebastian
  • flyfireflyfire Member Posts: 11 Contributor II
    Hi Sebastian,
    I include RapidMiner in a java program which is edited in Eclipse. In my program, there is just RapidMiner interface and some data preprocessing code.
    I also wonder that which exactly jar packages should I add in my program if I want to run my program on a computer which doesn't have RapidMiner installed. I find out that rapidminer.jar is attached with many other libs, not just those in the same directory with it. For example, when I use "write pmml" operator, it will come out an error that this operator is unknown, although I have added rapidminer.jar to the object's  java build path, and copied all the jar files in the "lib" folder which has rapidminer.jar to my object lib folder. I also looked up the "plugins" folder, but it contained nothing.

    This problem is not so clearly explained in the tutorial, so I am a little confused.

    Best,
       Flyfire.

  • flyfireflyfire Member Posts: 11 Contributor II
    Hi
      I have worked out this problem. The file rapidminer.jar also needs libs in the user profile, just copy this folder .RapidMiner5 to the user profile.
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    yes you will need to include the extension's .jars if you want to use that code. They can be downloaded from source forge together with the source code in the .zip files.

    If you are going to publish your program, please make sure that you are publishing your program under a compatible OpenSource license! RapidMiner is entirely published under AGPL3 and so you will need to find a compatible license to that.
    Would be cool if you could inform us about your product, as a developer of RapidMiner I'm always interested where our code proves useful :)

    Greetings,
      Sebastian
  • flyfireflyfire Member Posts: 11 Contributor II
    Hi
        I am back, after a long time. 8)
        It seems that there is a numble of people have paid attention to this topic. I now will give my solution for initializing the needed plugins of rapidminer as a library in programs.
        In our user file, there is a folder named ".Rapidminer5" which has a folder named "managed". This "managed" folder stores the plugins and the configure file. Yes, it is the "extensions.xml". It has the following contents.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <extensions>
      <extension>
        <id>rmx_text</id>
        <name>Text Processing</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.7</selected-version>
        <installed-version>5.0.7</installed-version>
      </extension>
      <extension>
        <id>rmx_parallel</id>
        <name>Parallel Processing</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.1</selected-version>
        <installed-version>5.0.1</installed-version>
      </extension>
      <extension>
        <id>rmx_pmml</id>
        <name>PMML</name>
        <active>true</active>
        <license>AGPL</license>
        <selected-version>5.0.2</selected-version>
        <installed-version>5.0.1</installed-version>
        <installed-version>5.0.2</installed-version>
      </extension>
      <extension>
        <id>rmx_weka</id>
        <name>Weka Extension</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.1</selected-version>
        <installed-version>5.0.1</installed-version>
      </extension>
      <extension>
        <id>rmx_r</id>
        <name>R Extension</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.1</selected-version>
        <installed-version>5.0.1</installed-version>
      </extension>
      <extension>
        <id>rmx_paren</id>
        <name>PaREn</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.1</selected-version>
        <installed-version>5.0.1</installed-version>
      </extension>
      <extension>
        <id>rmx_web</id>
        <name>Web Mining</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.4</selected-version>
        <installed-version>5.0.4</installed-version>
      </extension>
      <extension>
        <id>rmx_community</id>
        <name>Community</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.1</selected-version>
        <installed-version>5.0.1</installed-version>
      </extension>
      <extension>
        <id>rmx_series</id>
        <name>Series Processing</name>
        <active>false</active>
        <license>AGPL</license>
        <selected-version>5.0.2</selected-version>
        <installed-version>5.0.2</installed-version>
      </extension>
      <extension>
        <id>rmx_reporting</id>
        <name>Reporting Extension</name>
        <active>true</active>
        <license>AGPL</license>
        <selected-version>5.0.2</selected-version>
        <installed-version>5.0.2</installed-version>
      </extension>
    </extensions>
        Alter the "true" to "false" will shut off the init of the corresponding plugins. Have a try, this is the simples way.. :)
Sign In or Register to comment.