Skip to content

Checking your reading list…

Retry verification

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Changan Auto's Migration to Apache StreamPark: Streamlining Flink Job Management
Big Data 13 min read

Changan Auto's Migration to Apache StreamPark: Streamlining Flink Job Management

Changan Automobile replaced its custom Flink management platform with Apache StreamPark, overcoming limitations in user management, SQL development, scalability, and maintainability, while adapting StreamPark to Cloudera CDP and integrating Nacos for dynamic configuration, now managing 150+ Flink jobs with improved efficiency.

Background

Changan Automobile, one of China's four major automotive groups, generates hundreds of billions of CAN bus records daily, with cleaned data reaching 5 billion records. To extract value from this massive, continuously growing dataset for R&D, production, and sales, real-time computing with Apache Flink became critical.

Challenges with the Self-Developed Streaming Platform

Changan initially built a custom streaming application platform to manage Flink jobs, but it suffered from four major shortcomings:

Single function : Only deployment capability; lacked user permission, team, role, and project management.

Poor usability : No SQL autocomplete, inconvenient log browsing, no debugging, error detection, version control, or configuration center.

Poor scalability : Could not scale Flink clusters online, add or switch Flink versions, or add new Flink connectors/CDC.

Poor maintainability : No log viewing, version management, or configuration center.

Evaluation and Selection of Apache StreamPark

The team surveyed open-source alternatives including Apache StreamPark, Dinky, and Streaming-Web. They conducted a comprehensive assessment across core capabilities, stability, usability, extensibility, maintainability, and operational experience, aligning with current streaming job development needs and future big data platform plans. Apache StreamPark emerged as the best fit.

Key Advantages of StreamPark

Comprehensive Basic Management

StreamPark provides user permission management, ensuring users access only required data and resources, protecting data security and system stability.

One-Stop Streaming Platform

SQL validation, automatic image build/push, custom classloader with child-first loading to support both YARN and Kubernetes modes and free Flink version switching.

Job monitoring and log management for real-time status tracking, log inspection, and troubleshooting.

Strong Extensibility

Supports large-scale Flink on YARN jobs, seamless integration with existing YARN clusters, and customizable extension points.

Provides a full toolset for Flink job development: standardized configuration, simplified programming model, and rich connectors that lower DataStream development difficulty.

Full Lifecycle Management

StreamPark manages the entire job lifecycle — development, deployment, operations, and diagnostics — allowing developers to focus on business logic. Its job management module covers basic functions, JAR job management, and Flink SQL job management.

Adaptations for Production Use

Alert Enhancement

Extended StreamPark's alerting (email, Feishu, DingTalk, WeCom) with severity-based classification, routing alerts to different groups and individuals for faster response.

Nacos Configuration Management Integration

Integrated Nacos to avoid hardcoding Flink application configurations in JARs. Benefits:

Centralized configuration management with permission control.

Dynamic configuration updates via Nacos push, eliminating recompile/redeploy/restart cycles.

Deployment Issues on Cloudera CDP and Solutions

Changan's private cloud uses Cloudera CDP with Flink 1.14 (Cloudera version), whose installation layout differs from the community edition. Direct deployment per official docs failed to configure Flink Home and submit jobs. The team made targeted adaptations:

1. Flink Cluster Inaccessible

Problem : Cloudera Flink install path differs from actual submit path; the submit path lacks a conf directory.

Solution : Identified the real Flink Home at /opt/cloudera/parcels/FLINK/lib/flink. Created symlinks for Flink configuration or edited cluster config files directly in that path.

2. Hadoop Environment Check Failed

Solution : Added Hadoop environment variables on the StreamPark node, sourced /etc/profile, and restarted StreamPark.

3. Missing lib Directory in HDFS Flink Path

Solution : After deployment, checked HDFS path hdfs:///streampark/flink/ for a complete lib directory; manually uploaded local Flink Home lib if missing.

4. Job Duplicate Restart After Failure

Problem : StreamPark's auto-restart on failure caused multiple YARN instances of the same failed job.

Resolution : Confirmed as a bug via community communication; fixed in StreamPark 2.1.3.

Results and Benefits

StreamPark is now deployed in cloud and on-premises production/pre-production environments, managing 150+ Flink jobs (JAR and SQL). Jobs use Flink and Flink CDC to synchronize data from MySQL and Kafka to MySQL, Doris, HBase, and Hive. All 3000+ future Flink jobs will be migrated to StreamPark in batches.

The most significant benefit is the one-stop service: developers complete job development, compilation, and release within StreamPark, eliminating multiple tools for a single Flink SQL job. This simplifies the workflow, saves substantial time, and markedly improves Flink application development efficiency.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Apache FlinkNacosReal-time ComputingFlink CDCData StreamingPlatform MigrationApache StreamParkCloudera CDP

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion