Skip to main content
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
Jan 30, 2017 1:15 PM UTC

​Working with airbnb's Superset

  • Oct 5, 2026 9:16 AM UTC
  • 10 replies
  • 31320 views
  • Translate All

Working with airbnb's Superset

This is a very cool open source Analytics platform based on some cool Python.

I installed this on a CentOS 7 edge node.

sudo yum upgrade python-setuptools
sudo yum install gcc libffi-devel python-devel python-pip
python-wheel openssl-devel libsasl2-devel openldap-devel
pip install virtualenv
virtualenv venv. ./venv/bin/activate
pip install --upgrade setuptools pip
pip install mysqlclient
pip install pyhive
pip install superset
fabmanager create-admin --app superset
2017-01-27 18:15:37,864:INFO:flask_appbuilder.security.sqla.manager:Created Permission
View: menu access on Query Search2017-01-27
18:15:37,885:INFO:flask_appbuilder.security.sqla.manager:Added Permission menu
access on Query Search to role AdminRecognized Database Authentications.2017-01-27
18:15:37,907:INFO:flask_appbuilder.security.sqla.manager:Added user admin
Admin User admin created.
superset db upgrade
superset load_examples
superset init
superset runserver -p 8088

The main things you will need are Python

Browse to http://yourservername:8088/ and start running querys, building charts and reports. It does a lot of things that commercial reporting tools do, but fully open source. Superset + Zeppelin + CLI + ODBC + JDBC give me all the access to my Hadoop, Druid, SparkSQL and MariaDB data that I need.

11855-superset-login.png

This is admin with the password you set in the fabmanager create admin.

11856-superset-listtables.png

Browsing tables is easy in the web based platform.

11858-superset-queryeditor.png

The results of running a query which shows the intellisense that suggests table names for you.

11857-superset-fancyreport.png

This was a built-in example report that shows you how powerful and professional reports you can build with this tool.

The SQL Lab is a great place to try out queries and examine data.

11859-superset-sqllab-results.png

SQL Lab lets you run queries and explore the data. You get quick access to your previous queries and run status.

11860-superset-sqllab.png

This is a simple report that was autogenerated for me by picking a query on one table.

11861-superset-examplechart.png

This is your home page that will show you dashboards you have built and recent activity. A very nice github style interface.

11862-superset1.png

Reference:

10 replies

zsfunl
Silver ⭐️
Jan 31, 2017 5:50 AM UTC

Hi Timothy,

I am very interested to use airbnb's superset as the front visualization tool to connect with hdp (hive). I found your post and mentioned "Superset + Zeppelin + CLI + ODBC + JDBC give me all the access to my Hadoop, Druid, SparkSQL and MariaDB data that I need.".

Could you tell us how you create the superset data source with hdp's hive? The superset asks for the SQLAlchemy URI which I did not know what is for the hive database; I used the hdp's sandbox (2.5 version), it will be great to see the hdp's hive data from the superset fabulas UI.

Thanks,

Steve

Translate
ramcharantej
Gold ⭐️
May 4, 2017 4:50 PM UTC

Hi,

How do we connect to Hive using presto://? can you please help me out in changing the DB from SQLite to Hive/MySql?

Thanks,

Ram

Translate
pmj
Gold ⭐️
Aug 23, 2017 1:31 AM UTC

@Timothy Spann

I see in the Superset github page that it is tested only on python 2.7 but i am using hdp 2.5.3 which installed python 2.6 and looks like i cannot upgrade to 2.7 because hortonworks doesnt support it.... does it work good with python 2.6?

Translate
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
Aug 23, 2017 1:53 AM UTC

That may run, best running it on a separate unrelated node. It doesn't need to be on the Hadoop cluster.

For HDP 2.6 and later, it can be installed via Ambari as part of the cluster and will work fine with Druid.

I was just running it standalone for testing.

Best and easiest course of action is to upgrade to HDP 2.6 and install druid and superset through that.

Translate
pmj
Gold ⭐️
Aug 23, 2017 2:08 AM UTC

@Timothy Spann Thanks a lot for the reply. I will try it but I am having hard time finding the dependencies like python-wheel is see only for python 2.7... does it still work? Is there any other way to install superset like from a tar ball?

Translate
sso
Gold ⭐️
Oct 26, 2017 1:47 PM UTC

Thanks for your information.

I think

virtualenv venv. ./venv/bin/activate

should be

virtualenv venv

. ./venv/bin/activate

Translate