Quick start of Kyligence Insight for Supersetin in an offline environment.
- SUSE Linux Enterprise Server 11 SP4 x86_64 (64-bit)
- CentOS release 7 (64-bit)
- CentOS release 6 (64-bit)
Note: The user is required to obtain the Linux distribution information of the installed machine for subsequent installation. If you deploy offline, MapBox related visualizations will not be available because they need to access the external network.
Download installation package of Supserset in Kyligence Download Page .
Unzip the installation package
$ tar -xf [Package Name] e.g. : $ tar -xf Insight-Linux-x86_64-0.12.0.tar.gz
Enter the decompressed directory and set the current directory as the environment variable SUPERSET_HOME
$ cd Insight-Linux-x86_64-0.12.0 $ export SUPERSET_HOME=`pwd`
Install the dependencies of the Superset
$ bin/bootstrap.sh install [Linux distribution] e.g. : $ bin/bootstrap.sh install centos7
Modify the configuration file of the superset under the ./conf folder
$ vi conf/insight.default.yaml
Find the insight.default.yaml file and configure it according to your environment
superset: sqlalchemy_database_uri: <SQLAlchemy DSN, if empty, superset will use SQLlite instead> sqllab_timeout: <SQLLab timeout> mapbox_api_key: <mapbox token>
(Optional) Superset starts up to port 8099 by default. If you need to modify it, please modify the port configuration in the gunicorn_config.py file under the ./conf folder.
$ vi conf/gunicorn_config.py
Start Superset, The first start Supuerset will update the metadata and takes a few minutes.
$ bin/bootstrap.sh start
Stop Superset
$ bin/bootstrap.sh stop
Backup metadata and configuration files
$ cp [Superset installation directory]/superset.db [Backup destination folder]/superset.db $ cp [Superset installation directory]/conf/insight.default.yaml [Backup destination folder]/insight.default.yaml
Stop Application
$ [Superset installation directory]/bin/bootstrap.sh stop
Uninstall Application
$ [Superset installation directory]/bin/bootstrap.sh uninstall
Delete the entire Insight directory
$ rm -rf [Superset installation directory]
Download the new installation package and extract it , Enter the decompressed directory and set the current directory as the environment variable SUPERSET_HOME
$ tar -xf [Package name] $ cd [Superset installation directory] $ export SUPERSET_HOME=`pwd`
Install the dependencies of the Superset
$ bin/bootstrap.sh install [Linux distribution] e.g. : $ bin/bootstrap.sh install centos7
Put the metadata and configuration files back into the new installation directory
$ cp -f [Backup destination folder]/superset.db ./superset.db $ cp -f [Backup destination folder]/insight.default.yaml ./conf/insight.default.yaml
Start Application
$ bin/bootstrap.sh start
Stop Superset
$ bin/bootstrap.sh stop
If you encounter any problems while using, you can click on the link below Create an issue Send us your questions: https://github.com/Kyligence/Insight-for-Superset/issues