apache-superset

Installing superset: 'superset db upgrade' exit with code 132

流过昼夜 提交于 2020-04-30 06:39:36
问题 I try to install superset on Fedora 31, I've followed the official document site. I have this error when execute superset db upgrade logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully /home/mos/Workspace/superset/venv37/lib64/python3.7/site-packages/flask_caching/ init .py:189: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. "Flask-Caching: CACHE_TYPE is set to null, " Illegal instruction

How to Change Apache Superset Template from the Superset User Interface?

蓝咒 提交于 2020-01-13 19:34:23
问题 The Apache Superset UI has a CSS template tab, which can be used apparently to edit and change the UI skin. I tried editing the the CSS sheet but nothing is changing, Am I missing something? What will be the best way to change Apache Superset skin. 回答1: The Superset documentation is a bit sparse and I was unable to find clear instructions on how to do this. I'm leaving an answer that will hopefully save others time. Note: tested on Apache Superset v0.22.1 Creating a CSS template Login to

How to divide the country_map into more than just the country regions in Apache Superset?

耗尽温柔 提交于 2019-12-25 03:39:36
问题 I am using Apache Superset, specifically country_map to visualize data. Is it possible to slice the country maps into more areas than just the regions of the country? How can I achieve that? 回答1: In order to make changes to country maps, you need to build Superset from sources. First, fork the Apache Superset repo in your Github. Then clone the repo to your device and enter superset folder: git clone https://github.com/username/incubator-superset.git cd incubator-superset Second: sudo pip

Decorator for SecurityManager in flask appbuilder for superest

為{幸葍}努か 提交于 2019-12-11 05:09:43
问题 I'm trying to add a custom user information retrieval from OAuth in superset, which is build on top of flask-appbuilder. Official doc provides following information: Decorate your method with the SecurityManager oauth_user_info_getter decorator. Make your method accept the exact parameters as on this example, and then return a dictionary with the retrieved user information. http://flask-appbuilder.readthedocs.io/en/latest/security.html#authentication-oauth The example in the doc also does not

Apache superset: cannot read metadata from Athena

£可爱£侵袭症+ 提交于 2019-12-11 04:04:24
问题 I am trying to access Athena from superset, the connection is successful and could see all the schema and tables in SQL editior(Enabled expose this db in SQL lab). On SQL editor while loading the metadata it returns following error: ERROR OCCURRED WHILE FETCHING TABLE METADATA On Athena, it runs the following query SELECT table_schema, table_name, column_name, data_type, is_nullable, column_default, ordinal_position, comment FROM information_schema.columns And this query return following

How to get Apache Superset to run on a specified path

≯℡__Kan透↙ 提交于 2019-12-11 01:46:09
问题 I am running Apache Superset at the following address: http://superset.example.com:8088 That gets redirected to: http://superset.example.com:8088/superset/welcome Ideally, users would get redirected to: http://superset.example.com:8088/welcome How can that be accomplished? As well I would like for it to run under port 80 so the port doesn't need to be specified but I haven't been able to do that either. 回答1: This issue covers what you're talking about: https://github.com/apache/incubator

Add a druid cluster as a SQL database in Apache Superset

我只是一个虾纸丫 提交于 2019-12-09 13:37:38
问题 I currently connect to the druid cluster through the druid connector in Apache Superset. I heard that SQL can be used to query druid. Is it possible to point my SQL database connection to druid? 回答1: Follow the steps below You need to use latest version of pydruid for enabling sqlalchemy support. For me pydruid 0.4.1 is working fine. On Superset, in the Databases section you need to provide the SQLAlchemy URI druid://XX.XX:8082/druid/v2/sql/ using a broker ip/host. Third thing you need to do

Where are label_colour keys stored in apache-superset?

感情迁移 提交于 2019-12-07 05:08:09
问题 Version: Docker instance from here According to the docs I can edit colours based on labels; It is possible on a per-dashboard basis by providing a mapping of labels to colors in the JSON Metadata attribute using the label_colors key. By adjusting the JSON found as below; Where my code for JSON is; { "filter_immune_slices": [], "timed_refresh_immune_slices": [], "filter_immune_slice_fields": {}, "expanded_slices": {}, "label_colors": { "A": "#007F3D", "B": "#2C9F29", "C": "#9DCB3C", "D": "

Where are label_colour keys stored in apache-superset?

£可爱£侵袭症+ 提交于 2019-12-05 08:50:13
Version: Docker instance from here According to the docs I can edit colours based on labels; It is possible on a per-dashboard basis by providing a mapping of labels to colors in the JSON Metadata attribute using the label_colors key. By adjusting the JSON found as below; Where my code for JSON is; { "filter_immune_slices": [], "timed_refresh_immune_slices": [], "filter_immune_slice_fields": {}, "expanded_slices": {}, "label_colors": { "A": "#007F3D", "B": "#2C9F29", "C": "#9DCB3C", "D": "#FFF200", "E": "#F7AF1D", "F": "#ED6823", "G": "#E31D23" }, "default_filters": "{}" } Shortly after

Add a druid cluster as a SQL database in Apache Superset

走远了吗. 提交于 2019-12-03 16:39:20
I currently connect to the druid cluster through the druid connector in Apache Superset. I heard that SQL can be used to query druid. Is it possible to point my SQL database connection to druid? Follow the steps below You need to use latest version of pydruid for enabling sqlalchemy support. For me pydruid 0.4.1 is working fine. On Superset, in the Databases section you need to provide the SQLAlchemy URI druid://XX.XX:8082/druid/v2/sql/ using a broker ip/host. Third thing you need to do is to enable druid.sql.enable=true on broker. I hope this will help you. 来源: https://stackoverflow.com