Skip to main content

Quick Start

To quickly get started with StreamPark, you can either install and deploy with one click or install and deploy manually.

1. One-Click Installation

To install StreamPark with one click, simply copy the following command:

curl -L https://streampark.apache.org/quickstart.sh | sh

If you see the following message, it means the installation and deployment were successful: one_key_install

Note

The script has already installed StreamPark and the Flink cluster for you. You can log in directly to start jobs.

After logging in, click "Start" to begin the default job.

Login URL: http://127.0.0.1:8081, login credentials: admin / streampark
job_start_success

2. Manual Installation

Follow these three steps to quickly get started with StreamPark:

  • Step 1: Environment Setup
  • Step 2: StreamPark Installation
  • Step 3: Deploy Job

2.1 Environment Setup

MaterialVersion RequirementDemo Version (For Reference Only)
Operating SystemLinux/MacOSMacOS
JavaJDK version >=1.81.8.0_362
ScalaScala version >=2.122.12.18
FlinkFlink version >= 1.121.19.0
StreamPark PackageAny version2.1.5

Note: The default user should already have JDK and Scala installed locally.

2.2 StreamPark Installation

First, download the latest version of StreamPark from the official website. The version used in this article is 2.1.5, download link: https://streampark.apache.org/download

After downloading, extract it to a local directory and navigate to the bin directory to start StreamPark. The relevant scripts are as follows:

# Extract the StreamPark installation package.
tar -zxvf apache-streampark_2.12-2.1.5-incubating-bin.tar.gz

# Start StreamPark.
cd apache-streampark_2.12-2.1.5-incubating-bin/bin
./startup.sh

After a successful start, the interface will look like this: startup-success

Log in to StreamPark at: http://127.0.0.1:10000

Tip

Username and password: admin/streampark

login-page

2.3 Deploy Job

After logging into the system for the first time, you will notice that a default FlinkSQL job has already been created. To better demonstrate, this article uses the Standalone mode to run the job. Before doing that, you need to configure the Flink version and associate the Flink cluster.

Caution

The Flink installation package must be on the same server as the StreamPark service.

First, configure the Flink version by specifying the path to your local Flink extraction directory. Follow these steps: Settings Center → Flink Version → New

flink_home

Note

Ensure that your local Flink cluster is already started (just navigate to the Flink extraction directory’s bin directory and run ./start-cluster.sh).

Associate the Flink cluster by clicking: Settings Center → Flink Cluster → Add
flink_cluster

2.3.3 Configure Job

Click on Job Configuration to enter the job configuration page: job_config

Simply modify the deployment mode, Flink version, and Flink cluster, then save it: job_config_detail

Click "Release": job_release

Start the job: job_start

The page after a successful start looks like this: job_start_success

You can also go to the details page to view job details: job_detail

Other features are not demonstrated here, but are worth exploring...

3. Possible Issues

If you encounter the following error:

Warning

ERROR: streampark.workspace.local: "/tmp/streampark" is an invalid path, please reconfigure in ...

You may need to directly create the streampark folder in the /tmp directory of your system or configure the streampark.workspace.local property in the /conf/config.yaml file with a valid temporary directory path.