Superset basic installation

bfa06f24d4ce4c88969d03734c06bd67

Superset

introduce

Superset is fast, lightweight, and intuitive, and comes with a variety of options that make it easy for users of all skills to explore and visualize their data, from simple line charts to highly detailed geospatial diagrams.

1. Features

Here is an overview of the main features of Superset:

  • A rich collection of data visualizations out of the box
  • Easy-to-use interface for exploring and visualizing data
  • Create and share dashboards
  • Enterprise-grade authentication integrated with large authentication providers (Database, OpenID, LDAP, OAuth and REMOTE_USER integrated via Flask AppBuilder)
  • Scalable, highly granular security/permissions model that allows complex rules about who can access individual features and datasets
  • A simple semantic layer that allows the user to control how data sources are displayed in the UI by defining which fields should appear in which dropdowns and which aggregate and functional measures are available to the user
  • Integrate with most SQL-speaking RDBMSs via SQLAlchemy
  • Deep integration with Druid.io

Superset is cloud-native and designed for high availability. It is designed to scale to large distributed environments and works well inside containers. While you can easily test a Superset drive on a proper setup or just a laptop, there are few limitations to the extended platform.

In terms of flexibility, Superset is also cloud-native, which allows you to choose:

  • Web server (Gunicorn, Nginx, Apache)
  • Metadata database engine (MySQL, Postgres, MariaDB, etc.)
  • Message queues (Redis, RabbitMQ, SQS, etc.)
  • Result backend (S3, Redis, Memcached, etc.)
  • Caching layer (Memcached, Redis, etc.)

Superset also works well with services like NewRelic, StatsD, and DataDog, and is capable of running analytics workloads against most popular database technologies.

​ At present, Superset has been running on a large scale in many companies. For example, Superset runs in production at Airbnb within Kubernetes, serving more than 600 daily active users and viewing more than 100,000 graphs per day.

Install the Python environment

Superset is a web application written in Python language and requires Python3.6 environment

1. Install Miniconda

Conda is an open source package and environment manager that can be used to install different Python versions of software packages and their dependencies on the same machine, and can switch between different Python environments. Anaconda includes Conda, Python, and a lot of Installed toolkits, such as: numpy, pandas, etc. Miniconda includes Conda, Python

Here, we don't need so many toolkits, so we choose MiniConda

1.1 Download Miniconda (Python3 version)

Download address: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

1.2 Install Miniconda

#执行以下命令进行安装,并按照提示操作,直到安装完成

[root@qianfeng01 ~]# bash Miniconda3-latest-Linux-x86_64.sh

#在安装过程中,出现以下提示时,可以指定安装路径,安装过程中要注意这个设置路径位置

1619489049300

When the following words appear, the installation is complete

1619489120251

1.3 Configure environment variables

Modify the /etc/profile file as follows

export CONDA_HOME=/usr/local/miniconda3
export PATH=$PATH:$CONDA_HOME/bin

After modification and saving: source /etc/profile

1.4 Deactivate the base environment

After the installation of Miniconda is complete, its default base environment will be activated every time the terminal is opened. We can disable the activation of the default base environment through the following command

If not closed, the base environment will be automatically activated

conda config --set auto_activate_base false

2. Create a Python3.6 environment

2.1 Configure conda domestic mirroring

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main

conda config --set show_channel_urls yes

Check .condarcthe file, whether it is the following configuration

1619489329939

2.2 Create a Python3.6 environment

conda create -n superset python=3.6

1619489378241

Description: Common commands for conda environment management, the above name is the name of the environment

Create environment:conda create -n env_name

View all environments:conda info --envs

To delete an environment:conda remove -n env_name --all

2.3 Activate the superset environment

[root@node1 ~]# source activate
(base) [root@node1 ~]# conda activate superset

1619489464609

[Qianfeng Education] A full set of tutorials on big data development, the most comprehensive big data learning video in history

Guess you like

Origin blog.csdn.net/longz_org_cn/article/details/131952355