Skip to content

krakenninja/confluent-flink-fraud-detection-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confluent Cloud Apache Flink® Table API - Fraud Detection Demo

To demonstrate to bootup a Confluent Platform cluster to work with afedulov/fraud-detection-demo

📒 Pre-requisites

🧭 Guides

Follow the guide below to bootup Confluent Platform alongside with fraud-detection-demo

Setup Confluent Cloud

You must setup Confluent Cloud Flink Table API. Access to your Confluent Cloud and perform the following steps

1️⃣ Create Cloud Environment environment named e.g fraud-detection-demo

Add Cloud Environment

2️⃣ Create cluster for Cloud Environment fraud-detection-demo cluster named e.g cluster_fraud_detection_demo_0

Create Cluster : Type

Create Cluster : Region/Zone

Create Cluster : Review & Launch

Create Cluster : Overview

3️⃣ Generate API Key for Cloud Environment fraud-detection-demo

Generate API Keys : Create Key

Generate API Keys : Create Key

Generate API Keys : Create Key

Generate API Keys : Create Key

Generate API Keys : Create Key

4️⃣ Create Flink Compute Pool for Cloud Environment fraud-detection-demo

Create Flink Compute Pool : Create Compute Pool

Create Flink Compute Pool : Region

Create Flink Compute Pool : Review & Create

5️⃣ Create Flink API Key for Cloud Environment fraud-detection-demo

Create Flink API Key : Create

Create Flink API Key : Account

Create Flink API Key : Region

Create Flink API Key : Details

Create Flink API Key : Download & Complete

Create Flink API Key : Finished

6️⃣ Create Kafka Topic for Cloud Environment fraud-detection-demo cluster

Create Kafka Topic : Cluster Selection

Create Kafka Topic : Create

Create Kafka Topic : Create with Defaults

Test Confluent Cloud Setup

Once you had done the Setup Confluent Cloud mentioned above, you can run the following JUnit Test to test your setup is proper

  • Make sure your OS profile (i.e. ~/.zshrc) contains the following exported environment variable(s)
export CLOUD_PROVIDER="xxx"
export CLOUD_REGION="xxx"
export FLINK_API_KEY="xxx"
export FLINK_API_SECRET="xxx"
export ORG_ID="xxx"
export ENV_ID="xxx"
export COMPUTE_POOL_ID="xxx"
  • Next, open your terminal and run the command below :
cd confluent-flink-fraud-detection-demo/fraud-detection-job
mvn test -Dtest=com.github.krakenninja.demo.confluent.cloud.HelloTableApiJUnitIntegrationTest
  • You should be able to see the following result in your terminal

JUnit Test : Confluent Cloud Setup

📚 References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages