Hi all, I am deploying Datahub locally with Docker and would like to change the default credentials (datahub:datahub). I’ve tried to follow <Changing the default user credentials | DataHub guide> to modify user.props, but there is no file like that in my /datahub directory. There is even no /datahub-frontend folder. Could anyone give me advice on that?
Hey there! Make sure your message includes the following information if relevant, so we can help more effectively!
- Which DataHub version are you using? (e.g. 0.12.0)
- Please post any relevant error logs on the thread!
The trick is: you have to create the file yourself.
Somewhere on the compute where you run Docker create an empty text file. Filename and path does not matter. But lets call the file my-users.props. Then you write all users/passwords you want to have as datahub accounts into my-users.props, one line per account (do not use colons as part of username or password. This might cause trouble). To change the default password for datahub, just put one line in my-users.props:
datahub:myNewPassword
Next step: edit the correct datahub docker file. If you use docker compose, the correct file is datahub/docker/docker-compose.yml, if using quickstart it is either docker/quickstart/docker-compose.quickstart.yml or datahub/docker/quickstart/docker-compose-without-neo4j.quickstart.yml. Edit the file according to <Changing the default user credentials | DataHub guide>.
<absolute_path_to_your_custom_user_props_file>
is the absolute (=full) path to the file you created earlier (e.g. my-users.props)
Hope this helps.