How can I call an outer process from my own operator?

matsuiakira
matsuiakira New Altair Community Member
edited November 5 in Community Q&A

I am concidering making my own operator, that enables me to call a UNIX command installed on my computer.

For this reason, I need to call an outer process from Java source code, but the security & restrictions have been harder scinse Rapidminer Studio 7.2.

 

How can I overcome the new security policy to call an outer process?

 

Best Answer

  • mmichel
    mmichel New Altair Community Member
    Answer ✓

    Hi,

     

    the execution of external applications/ commands is only possible for signed extensions.

    If you want to publish your extension on the marketplace, please write me a PM then we can speak about the signing process.

     

    In the meantime or for development purposes you can utilize the open core of RapidMiner Studio. Just add '-SNAPSHOT' to the RapidMiner version (gradle.properties) and the the security restrictions will not be applied.

     

    Next time please post these kind of questions in the development forum.

     

    Cheers,

    Marcel

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee

    Hi,

     

    isn't this operator already available with Execute Program?

     

    ~Martin

  • matsuiakira
    matsuiakira New Altair Community Member

    Thanks for you quick reply, Martin!

     

    I know the Execute Program operator provides a similar feature,

    but what I'd like to make is one that has similar interface to Execute Python/R.

     

     

  • mmichel
    mmichel New Altair Community Member
    Answer ✓

    Hi,

     

    the execution of external applications/ commands is only possible for signed extensions.

    If you want to publish your extension on the marketplace, please write me a PM then we can speak about the signing process.

     

    In the meantime or for development purposes you can utilize the open core of RapidMiner Studio. Just add '-SNAPSHOT' to the RapidMiner version (gradle.properties) and the the security restrictions will not be applied.

     

    Next time please post these kind of questions in the development forum.

     

    Cheers,

    Marcel

  • 21310122
    21310122 New Altair Community Member

    After downloading the template project(rapidminer-extension-template-master) from github, there is only one line in file gradle.properties:

    version=1.0.0

     

    As you said, we should add -SNAPSHOT to the version of rapidminer and the the security restrictions will not be applied. 

    So what's the key that stands the version of rapidminer in this properties file?

    Or I should just add -SNAPSHOT like this:

    version=1.0.0-SNAPSHOT

     

  • mmichel
    mmichel New Altair Community Member

    The snapshot classifier should be added to the open-core of RapidMiner (rapidminer-studio/gradle.properties), not the extension template ;-)

  • 21310122
    21310122 New Altair Community Member
    But I don't use rapidminer-studio source code, I just add rapidminer dependency in my extension project like this image.
    So How can I edit its gradle.properties and add -SNAPSHOT?
    1.png 4.7K
  • mmichel
    mmichel New Altair Community Member

    I'm afraid, but to my knowledge you would need the source code of RapidMiner Studio for that.

  • 21310122
    21310122 New Altair Community Member

    But I read your document named "how to extend RapidMiner", it said I just need use a RapidMiner as dependency like this:

    So should I add -SNAPSHOT in this dependency settings? like 7.0.0-SNAPSHOT?

    1.jpg

     

  • mmichel
    mmichel New Altair Community Member

    Nope, you should start your extension via the open core of RapidMiner Studio and add the '-SNAPSHOT' tag there (rapidminer-studio/gradle.properties).