The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options

Run Python as external process in custom operator

ralph_brecheiseralph_brecheise Member Posts: 17 Maven
edited December 2018 in Help

Hi,

 

I'm trying to build a custom operator that calls Python under-the-hood using the ProcessBuilder class in Java. The Python extension is nice but a bit limited if you want to do more complicated things. Also, for every new project that wishes to re-use my Python code, I need to copy-paste between different RapidMiner processes because the script code is directly inserted into the XML. This is quite cumbersome.

 

Unfortunately, when I try to call Python using ProcessBuilder I cannot get RapidMiner Studio to NOT throw an access denied (java.io.FilePermission""<<ALL_FILES>>""execute") error. I have searched for all java.policy files on my system and added this particular file permission but none of these seem to have any effect. By inserting a typo in one of the java.policy files on purpose I could verify that it was indeed the one used by RapidMiner but even then, adding the <<ALL FILES>> file permission had no effect whatsoever. 

 

So, I'm completely stumped. Does anybody have an idea what could be the problem?

 

Thanks!

 

Ralph Brecheisen

Tagged:

Answers

  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,525 RM Data Scientist

    Dear @ralph_brecheise,

    the operator you are working in sounds very interesting. I think you are running into our security mechanisms.

     

    I will ask internally on how we can support you best.

     

    Cheers,

    Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • Options
    ralph_brecheiseralph_brecheise Member Posts: 17 Maven

    Dear Martin,

     

    That's very much appreciated!

     

    Thank you.

     

    Ralph

  • Options
    sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    hi @ralph_brecheise - I'm checking on this as well for you.  Stay tuned.


    Scott

     

     

  • Options
    ralph_brecheiseralph_brecheise Member Posts: 17 Maven

    Thanks!

Sign In or Register to comment.