You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/02/01 14:49:40 UTC

[GitHub] [superset] zseta edited a comment on issue #8395: import_datasources not working

zseta edited a comment on issue #8395:
URL: https://github.com/apache/superset/issues/8395#issuecomment-1026921503


   Just in case anyone finds this via google, the example provided by @ljpeters works, but for me the `name_of_datasource_in_DATABASE.yaml` was confusing so here's another example that works:
   
   sources.yaml:
   ```yaml
   databases:
   - database_name: My database
   [...]
   ```
   
   ```bash
   superset import_datasources -p sources.yaml
   superset set_database_uri -d "My database" -u postgresql://user:pass@db_host:5432/db_name
   ```
   
   In our case, we use Docker to build out a superset instance with pre-built database and dashboards and this is what we use


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org