RapidMiner 9.7 is Now Available

Lots of amazing new improvements including true version control! Learn more about what's new here.

CLICK HERE TO DOWNLOAD

"Set MongoDB Instance with a macro, is it possible?"

christian_plochchristian_ploch Member Posts: 3 Contributor I
edited May 2019 in Help
Hello everyone,

long time lurker, first time poster.
I make it fast:

I've got a process, which reads with help of the NoSQL Connectors Plugin from my MongoDB. 
So far I was able to set a macro, which says what Collection should be read.

Is it also possible to set a macro, which sets the MongoDB "Instance" (e.g. mongodb://localhost:27017/{%db_name})?

I tried several methods, but it's not working here. Anyone an idea? Thanks!
Tagged:
sgenzer

Best Answer

Answers

  • christian_plochchristian_ploch Member Posts: 3 Contributor I
    Yeah, I suspected that, it is not possible, hoped i overlooked something.
    But I will give a try with your solutions @kayman

    appreciate it! Thanks!
    kayman
  • mschmitzmschmitz Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 2,509  RM Data Scientist
    @christian_ploch
    i think it's technically possible. you can hack the xml and just add %{macroName} at the right setting. Not a nice work around though.

    + We are working on it and the problem will be fixed "soon".

    BR,
    Martin
    - Head of Data Science Services at RapidMiner -
    Dortmund, Germany
    christian_ploch
  • christian_plochchristian_ploch Member Posts: 3 Contributor I
    @mschmitz Yeah, already tried it with the process itself and also with the configurable-mongodb_instance.xml.
    If I play with the latter it throws me "Invalid JSON/BSON Object" (when I add the macro in the xml into the connection string). While the process gives me the "collection is not available".

    Thanks anyway :)
    sgenzer
Sign In or Register to comment.