superset_config.py doesn't work
See original GitHub issueMake sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if any
- I have reproduced the issue with at least the latest released version of superset
- I have checked the issue tracker for the same issue and I haven’t found one similar
Superset version
0.15.0
Expected results
the parameters in superset_config.py
should work.
Actual results
the parameters in superset_config.py
don’t work.
Steps to reproduce
-
vim superset_config.py
SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/superset.db' DRUID_IS_ACTIVE = False
andmv superset_config.py /usr/local/superset
-
add PYTHONPATH in /etc/profile
export PYTHONPATH=/usr/local/superset:$PYTHONPATH
orexport PYTHONPATH=/usr/local/superset
source /etc/profile
-
run superset I set wrong
SQLALCHEMY_DATABASE_URI
but superset still works
so the superset_config.py doesn’t works, something wrong?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Apache Superset config.py on - Stack Overflow
Run this command: export SUPERSET_CONFIG_PATH=/path/to/your/superset_config.py. Restart your superset to take the changes. Source: ...
Read more >Configuring Superset
To configure your application, you need to create a file superset_config.py and add it to your PYTHONPATH . If your application was installed...
Read more >superset/config.py - Google Git
# Function accepts database object, user object, schema name and sql that will be run. SQLLAB_CTAS_SCHEMA_NAME_FUNC: Optional[. Callable[[ ...
Read more >Installation & Configuration - apache-superset - Read the Docs
Since superset_config.py acts as a Flask configuration module, it can be used to alter the settings Flask itself, as well as Flask extensions...
Read more >Sample superset_config.py - Google Groups
Still unable to install superset: fabmanager failing: Was unable to import superset Error: import_string() failed for 'superset.config'. Possible reasons are:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe Im not getting you quite right.
But this is how we can override “config.py” default settings:
create a new file “superset_config.py” in some directory say “/home/local_settings/”. Add line:
SQLALCHEMY_DATABASE_URI = 'sqlite:////home/data/superset.db'
(or any path u have write permissions to)Now you can do either:
export PYTHONPATH=/home/local_settings/:$PYTHONPATH
ORexport SUPERSET_CONFIG_PATH=/home/local_settings/
Thats it.
Didn’t work for me in superset 0.18.0 . When setting
SUPERSET_CONFIG_PATH=/code/superset/
it was throwing this:What did work is setting the full path to the file, not just directory.
SUPERSET_CONFIG_PATH=/code/superset/superset_config.py