Skip to content

Commit

Permalink
docs: incorrect psycopg2 package in k8s install instructions (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku authored Feb 4, 2025
1 parent 8984f88 commit 9aa8b09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/docs/installation/kubernetes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,19 @@ Superset requires a Python DB-API database driver and a SQLAlchemy
dialect to be installed for each datastore you want to connect to.

See [Install Database Drivers](/docs/configuration/databases) for more information.
It is recommended that you refer to versions listed in
[pyproject.toml](https://github.com/apache/superset/blob/master/pyproject.toml)
instead of hard-coding them in your bootstrap script, as seen below.

:::

The following example installs the drivers for BigQuery and Elasticsearch, allowing you to connect to these data sources within your Superset setup:
```yaml
bootstrapScript: |
#!/bin/bash
pip install psycopg2==2.9.6 \
sqlalchemy-bigquery==1.6.1 \
elasticsearch-dbapi==0.2.5 &&\
pip install .[postgres] \
.[bigquery] \
.[elasticsearch] &&\
if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi
```

Expand Down

0 comments on commit 9aa8b09

Please sign in to comment.