Options

"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:

Best Answer

Answers

  • Options
    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!
  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,507 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
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • Options
    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 :)
Sign In or Register to comment.