Superset - Developer Guide

Superset - Developer Guide

Superset - Developer Guide

Learn how to install and configure Apache Superset on AWS with our step-by-step deployment guide. This comprehensive resource walks you through provisioning your cloud environment, securely deploying Superset, and optimizing it for scalability, high availability, and performance on AWS. Whether you’re building interactive dashboards, running complex analytics, or managing large-scale data visualizations, this guide will help you set up and run Superset efficiently in the cloud.

Welcome to the Superset Deployment Guide for AWS Integration! Unlock the full potential of Apache Superset, the open-source business intelligence and data visualization platform. Seamlessly integrate with your AWS infrastructure to achieve enterprise-grade scalability, secure access, and DevOps-friendly automation. Empower your teams with interactive dashboards, real-time analytics, and extensibility for mission-critical insights. Let’s get started and elevate your data visualization and decision-making with Superset on AWS.

Prerequisites

Before you get started with the Superset AMI, ensure you have the following prerequisites:

Launching the AMI

Step 1: Find and Select Superset AMI

  1. Log in to your AWS Management Console.
  2. Navigate to the 'Superset' in AWS Marketplace.

Step 2: Initial Setup & Configuration

  1. Click the "Continue to Subscribe" button.
  2. After subscribing, accept the terms and click "Accept Terms".
  3. Wait a few minutes until processing completes, then click "Continue to Configuration".
  4. Select "CloudFormation script to deploy Superset" as the fulfillment option and choose your region. Click "Continue to Launch".
  5. From the "Choose Action" dropdown, select "Launch CloudFormation" and click "Launch".

Create CloudFormation Stack

Step1: Create a stack

  1. Ensure the "Template is ready" option is selected under "Prepare template".
  2. Click "Next".

Step2: Specify stack options

  1. Provide a unique "Stack name".
  2. Superset Developer GuideProvide the "Admin Email" for SSL generation.
  3. Enter a value for "DeploymentName".
  4. Provide a public domain for "DomainName". Superset will automatically try to set up SSL if the domain is hosted on Route53. If unsuccessful, you must set up SSL manually.
  5. Choose an instance type "InstanceType" (Recommended: t3.medium).
  6. Enter Superset username for login.
  7. Enter Superset password for login.
  8. Select your preferred "keyName".
  9. Set "SSHLocation" to 0.0.0.0/0.
  10. Keep "SubnetCidrBlock" as 10.0.0.0/24.
  11. Keep "VpcCidrBlock" as 10.0.0.0/16.
  12. Click "Next".

Step3: Configure stack options

  1. Choose "Roll back all stack resources" and "Delete all newly created resources" under "Stack failure options".
  2. Click "Next".

Step4: Review

  1. Review and verify the details you've entered.
  2. Tick "I acknowledge that AWS CloudFormation might create IAM resources with custom names".
  3. Click "Submit".
Superset Developer Guide

Afterward, you'll be directed to the CloudFormation stacks page. Please wait for 5-10 minutes until the stack has been successfully created.

Superset Developer Guide

Update DNS

Step1: Copy IP Address

Copy the public IP labeled "PublicIp" in the "Outputs" tab.

Superset Developer Guide

Step2: Update DNS

  1. Go to AWS Route 53 and navigate to "Hosted Zones".
  2. Click Create record.
  3. Add a record name and paste the copied PublicIp into the value textbox.
  4. Click "Save".
Superset Developer Guide

Access Superset

Access Superset using the "DashboardUrl" or "DashboardUrlIp" provided in the Outputs tab.

Superset Developer Guide

Note: If you receive a “502 Bad Gateway” error, wait approximately 5 minutes and refresh the page. The application may still be initializing.

Superset Developer Guide

Please enter the Username and Password that you provided during stack creation. Store them securely for future reference.

Generate SSL Manually

Superset will automatically try to set up SSL when a Route53-hosted domain is provided. If it fails, follow these steps to generate SSL manually.

Step1: Copy IP Address

  1. Follow the Update DNS steps above, if not already done.
  2. Copy the Public IP indicated as "PublicIp" in the "Outputs" tab.
Superset Developer Guide

Step2: Log in to the server

  1. Open the terminal and go to the directory where your private key is located.
  2. Run: ssh -i <your key name> ubuntu@<Public IP address>
  3. Type "yes" and press Enter to confirm.
Superset Developer Guide

Step3: Generate SSL

Run the following command and follow the prompts:

sudo /root/certificate_generate_standalone.sh

Check Server Logs

Step1: Log in to the server

ssh -i <your key name> ubuntu@<Public IP address>
Superset Developer Guide

Step2: Check the logs

sudo docker ps

sudo docker logs <container-id-prefix>
Superset Developer Guide

Shutting Down Superset

  1. In CloudFormation, click the link labeled "Instance" in the "Resources" tab to open the EC2 instance.
  2. Stop the Superset instance from the Instance state dropdown. You can restart it later as needed.
Superset Developer Guide Superset Developer Guide

Remove Superset

Delete the CloudFormation stack from the AWS Management Console under "CloudFormation Stacks" by clicking "Delete".

Upgrades

When a new version is available in AWS Marketplace, remove the previous deployment after backing up necessary server data, and relaunch with the new version.

Troubleshoot

  1. If you face vCPU quota limits, request an increase: How to increase AWS quota.
  2. Superset Developer Guide
  3. If you face insufficient capacity errors while creating the stack, try another region or time.
  4. Superset Developer Guide
  5. If the dashboard is temporarily inaccessible, wait 5–10 minutes and retry.
  6. Superset Developer Guide

Check whether the instance storage is full.

  • Log into the server and run:
df -h
Superset Developer Guide
  • If the root volume is between 90–100%, resize the EBS volume (per AWS docs), then reboot and restart the service.

Conclusion

The Meetrix Superset Deployment Guide helps you integrate Superset into your AWS environment. Whether you're a DevOps engineer, data architect, or IT leader, this guide provides step-by-step instructions for a secure and scalable setup.

Technical Support

Reach out to Meetrix Support (aws@meetrix.io) for assistance with Superset issues.