Tutorial

Running MDM v13.x Locally on MacOS

  • 15 July 2022
  • 0 replies
  • 291 views

Userlevel 3
Badge +1

Tested on v13.3

Steps overview:

  1. Download all components
  2. Install ONE Desktop
  3. Launch ONE Desktop and create the MDM Banking example project
  4. Place the files in the right structure
  5. Modify a bunch of files so they are working on MacOS
  6. Configure the Mac permissions to run things
  7. Launch ONE Desktop and create the MDM Banking example project
  8. Launch it all (keycloak, postrgres), one by one

Download:

For latest versions of the data (optional):

  • ataccama.json permissions file, found here

Install ONE Desktop:

Place the files in the right structure:

❗❗ To run the .sh scrips successfully, they need to be placed in a path that contains no spaces. The ONE Desktop path has at least one space, so we need to place the parts we want to run from the terminal on a spaceless path (Keycloak, Postgres, MDM, JRE and Server)

  • To view the contents of ONE Desktop in Finder:

    • Right click on the application
    • Click on Show Package Contents
    • Click on Contents
    • Click on Eclipse
  • Extract the following archives in the Eclipse folder and rename the folder names to the following:

  • The folder structure should look something like this

     

  • Your path without spaces should be similar to /Applications/ONEDesktop.app/Contents/Eclipse

  • Place your license in your home folder, e.g. /Users/<username>/emp_license_13.plf

  • Delete the data folder in /Applications/ONEDesktop.app/Contents/Eclipse/pgsql

  • (Optional) Replace the ataccama.json file in /Applications/ONEDesktop.app/Contents/Eclipse/keycloak/ with the one you downloaded

  • (Optional) Replace the backup file in /Applications/ONEDesktop.app/Contents/Eclipse/pgsql/pginit with the one you downloaded

  • (Optional) Download Java jdk (you can find the recommended and supported version here) and set it as Java Home

Launch ONE Desktop and create the MDM Banking example project:

  • Open Ataccama ONE Desktop and select the Ataccama ONE Desktop perspective.
  • In Model Explorer, select New and then Model Project.
  • In Use template: select General MDM project - CDI Example.

Configure the Mac permissions to run things:

👉 Don't forget that if you replace some files you will need to again set the permissions and run the xattr command.

  • Open the Terminal (command+Space Terminal) and navigate to the /Applications/ONEDesktop.app/Contents/Eclipsefolder. Eg: cd /Applications/ONEDesktop.app/Contents/Eclipse
    • Type CHMOD -R 777 . (the "." is intentional)
    • Type xattr -r -d com.apple.quarantine .
  • Navigate to /Applications/ONEDesktop.app/Contents/Eclipse/pgsql
    • Type chmod -R 0700 .

Launch it all, one by one:

  • Open Files/bin folder in the CDI Example
  • Launch keycloak: double-click on start_keycloak.sh and wait for Keycloak startup complete message to appear in the console
  • Launch postgres: double-click on start_postgres.sh
  • Launch mdm-server: double-click on start_server.sh
  • Launch mdm: open your terminal, navigate to /Applications/ONEDesktop.app/Contents/Eclipse/mdm/bin/ and execute sh start.sh from the Terminal

💪 If all launched correctly, you can find the MDM app at http://localhost:8050/ and the MDM Server at http://localhost:8051/


0 replies

Be the first to reply!

Reply