How to install mysql driver on an AWS image

UserBird
UserBird Dataiker, Alpha Tester Posts: 535 Dataiker
I have just launched an AWS instance based on dataiku official images: https://aws.amazon.com/marketplace/pp/B017MTTNFO

I need to connect to a mysql db, but the driver is missing. According to https://doc.dataiku.com/dss/latest/installation/jdbc.html, I need to stop dataiku, place the jar file in the DATA_DIR/lib/jdbc and then restart dataiku.

Dataiku is run, I think, by the dataiku user, but I can not find the dataiku user password and when I try to stop it using root, it does not allow me to do so.

How can I achieve this?

Thanks in advance
Tagged:

Answers

  • jereze
    jereze Alpha Tester, Dataiker Alumni Posts: 190 ✭✭✭✭✭✭✭✭

    Hi,

    Use the sudo command to switch to dataiku user.

    sudo su - dataiku

  • AdrienL
    AdrienL Dataiker, Alpha Tester Posts: 196 Dataiker
    edited July 2024

    If you are root and want to perform operations on DSS, you can simply impersonate the dataiku user using the su command (documentation):


    # whoami
    root
    # su - dataiku
    $ whoami
    dataiku

    You can then stop dss, download the mysql driver, etc.

Setup Info
    Tags
      Help me…