Superset accesses mysql and impala

     Superset is an open source data analysis and visualization platform (formerly known as Caravel, Panoramix) opened by Airbnb (a well-known online short-term rental company). The main features of this tool are self-service analysis, custom dashboards, analysis results visualization (export), user /role permission control, and also integrates a SQL editor, which can perform SQL editing and querying, etc. It was originally used to support Druid's visual analysis, and later developed to support many relational databases and big data computing frameworks, such as: mysql, oracle, Postgres, Presto, sqlite, Redshift, Impala, SparkSQL, Greenplum, MSSQL.

For its installation and deployment, please see: http://daizj.iteye.com/admin/blogs/2363180

This article briefly talks about how Superset connects to mysql and impala

1. Access mysql data source

1. First install the relevant software

pip install mysqlclient

restart superset

2. Click Source -> Database

3. Click the "+" sign to open the page for adding a database




4. Configure the database access url and



configure the SQLAlchemy URI: mysql:// Username:Password@IP:Port/database

After configuration, click: Test Connection

When the pop-up dialog box is: Seems Ok, it means the configuration is correct, and all the tables under the database will be displayed at the bottom of the page

2. Connect impala

1. Install software

pip install impyla

pip install git+https://github.com/cloudera/impyla.git
This official website does not say to install, but it must be installed to connect normally

2. Configure SQLAlchemy URI:
impala://ip:port/database





Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326645182&siteId=291194637