Skip to content

Cloud Blogs

Author – Madhusudhan Rao

Menu
  • Archive Blogs
    • Cloud-Blogs by Madhusudhan Rao
      • ADF
        • ADF based Android Apps
        • ADF CRUD Cascaded LOVs
        • ADF CRUD Operation
        • ADF for Dummies
        • ADF for Financial Services Software Development
      • Analytics & Visualization
        • Business Intelligence
        • Oracle BI & DV Cloud Service
        • setting up Oracle Analytics Cloud Instance and Data Visualization Techniques
      • App Servers & DevOps
        • How to deploy NodeJS Application on Oracle Application Container Cloud Service
        • Oracle Application Container Cloud Service
        • Oracle Java Cloud Service
      • Architecture
        • 01 Enterprise Business
        • 02 Content framework
        • 03 Enterprise Continuum
        • 04 Maturity Models
        • 05-Architecture Governance
        • 06-Preliminary Phase
        • 07-Architecture Vision
        • 08-Business Architecture
        • 09-Info Sys Architecture
        • 10-Tech Architecture
        • 11 Opportunities & Solns
        • 12-Migration Planning
        • 14 Implementation Governance
        • 15 Change Management
        • 16-Requirement Management
        • 17 Reference Models
        • Cloud Architecture Concepts
          • 01 Architecture Concepts – Regulatory Compliance, Security monitoring and Storage protocols
          • 02 Architecture – Network Concepts and Bare Metal
          • 03 Enterprise Solution Architecture – Best Practices
          • 04 Cloud Architecture Concepts
        • Value Selling Techniques
      • OCI Admin Blogs
        • Create Oracle Cloud Infrastructure Instance
        • ElasticSearch & Kibana – Must for All Search Engine Development
        • How to Create Oracle Bare metal Compute Instance
        • Measuring Latency and TraceRoute Details with Oracle Edge Services
        • OCI Oracle cloud infrastructure – Setting up a NAT Instances for Public Internet Access from a Private Subnet
        • Oracle Cloud Infrastructure – OCI Creating buckets and object storage – setting up self expiry URLs
        • Oracle Cloud Infrastructure OCI – Create Instance ,Attach Block Volume , Open Ports, Setup Firewall rules
        • Python Basics
        • setting up Apache Tomcat on Oracle Cloud Infrastructure OCI
        • setting up CloudFlare DNS & HAProxy on Oracle Cloud Infrastructure for High Availability
        • Setting up Django Python Web Environment on Oracle Cloud
        • setting up File Storage on OCI and uploading files through Filezilla FTP
        • Setting up GPU-enabled Narupa server on Oracle Bare Metal Cloud for Virtual Reality Clients
        • setting up LAMP Stack , PHP 5.6, PhpMyAdmin , FTP and Mail Server on OCI
        • setting up Load Balancer on Oracle Cloud Infrastructure
        • setting up MongoDB Enterprise version Instance on Oracle Cloud Infrastructure Baremetal
        • setting up MongoDB on Oracle Cloud Infrastructure Classic and Opening Ports
        • Setting up SSH , FTP and Opening Ports on Oracle Cloud PaaS and IaaS
        • setting up web infrastructure DNS and HTTPS for your cloud Infrastructure as a Service OCI
        • World of Slack Programming
      • OCI Classic Blogs
        • How to Create WordPress blog on Oracle Cloud
        • running Function as a Service on Oracle Cloud Infrastructure – fnproject.io
        • running Hadoop & Big Data on Oracle Cloud Infrastructure
        • running TensorFlow Machine Learning for Image Recognition on Oracle Cloud Infrastructure
        • Setting up Kubernetes on Oracle Cloud Infrastructure – Classic
      • Oracle BPM for Financial Services
        • BPM for FS
        • 1. Setting up the development environment
        • 2. Modeling a home loan business process
        • 3. Implementing a home loan business process
        • 4. Deploying and testing a process workflow
        • 5. Administering processes
        • 6. Changing a business process by the process analyst
        • 7. Creating business reports for process owners
        • 8. Participating in a business process
        • 9. Integrating with business partners
        • 10. Collaborating with customers and end users
      • Oracle JET Series
    • Dockers on OCI Series
      • Comprehensive Blog on Dockers running on OCI
      • running a Docker Container on OCI
      • opening OCI Ports for Docker Containers
      • Building a Docker Image by using Dockerfile
      • Committing changes made in a Docker without using Dockerfile
      • pushing image to Docker Hub
      • DevOps with Github, Docker Hub and Oracle Container Cloud Services
      • running Apache Kafka for continuous data streaming on Oracle cloud infrastructure
    • Oracle Database Cloud Service
    • Oracle OKE Series
      • 01 Comprehensive Blog on Oracle Kubernetes Engine – getting started
      • 02 Configure Network Resources for Oracle Kubernetes Engine
      • 03 Creating 3 Worker and 2 Load Balancers Subnets for OKE
      • 04 Creating Oracle Kubernetes Cluster
      • 05 – Enable Cluster access through Command line interface
      • 06 – Getting onto Oracle Kubernetes Engine Dashboard
      • 07 Pod Configuration using a YAML Deployment
    • setting up and running Oracle Big Data PaaS
    • Setting up MySQL PaaS on Oracle Cloud
    • SOA BPM IDM Portal Series
      • FMW
        • Comprehensive Business Process Management – BPM 11g
        • FMW Install Startup Scripts
        • Oracle 11gR2 and 12c Database on Linux / OEL / Fedora
        • Oracle Identity Mangement
        • PS6, PS7, PS8 Install and Configuration
      • Webcenter Portal
        • Art of Webcenter Templating
        • Webcenter Sites Installation Linux
        • Webcenter Sites Look n feel
        • Webcenter Spaces
          • Custom Landing Page
        • Webcenter UCM Integration PS5
        • Webcenter, BPM Process Spaces – UCM PS5
        • BPM UCM and Webcenter PS5
      • BPM Series
        • 01-Simple BPM Task Initiator
        • 02-Business Rules and Exclusive Gateway
        • 03-Service Invocation Adapters
        • 04-BPM as a Web Service
        • 05-Mediator and Conditional Service Routing
        • 06-BPM Composer – Runtime Edit
        • 07-BPM and JMS Adapters
        • Oracle BPM 12c features
      • Process Cloud Service
        • Part 1 – Working with Process Cloud Service
        • Part 2 – How to Build Process , Data Persistence in Database Cloud Service
        • Part 3 – Invoking PCS Process from Oracle JET Framework
      • SOA Series
        • Oracle OSB 11g
        • Oracle SOA 11g Business Rules
        • Oracle SOA 11g DB Adapter
        • Oracle SOA 11g Mediator
        • SOA 11g AQ Adapters
    • Terraform on OCI Series
      • Create a Highly Scalable Cluster in the cloud using Terraform on OCI
      • Creating an Instance with New VNC Network
      • Managing the OCI Cluster with Slurm Workload Manager & Grafana
      • Terraform on OCI create instance
      • Terraform on OCI create load balancer
      • Terraform on OCI create non-federated user
      • Terraform on OCI create user, group, dynamic group and policies
      • Terraform on Oracle Cloud OCI
  • Database Developer Series
  • Database Series
    • Autonomous Data Warehouse and Analytics
      • 01 Preparing Client Machine
      • 02 Creating Autonomous Data Warehouse Instance
      • 03 Creating Tables into Autonomous Data Warehouse through SQL Developer
      • 04 Load Data into OCI Object storage and import that data into Autonomous Data warehouse
      • 05 Create Autonomous Analytics Cloud ADW Connection and create Data Visualization
    • Oracle Apex Cloud Service
Menu

running Apache Kafka for continuous data streaming on Oracle cloud infrastructure

Goal

Goal of this blog is to setup a docker based Apache Kafka on Oracle cloud infrastructure , create topics, post messages into those topics .. this is significantly important architectural component in cloud based solution where a company has a need to monitor a continuous data stream coming from various streams and they want to take actions based on these streams , since kafka is meant to manage high volume of data it can setup multiple replication clusters for data management

Start from Docker Hub choosing right docker image

most commonly recommended image is landoop/fast-data-dev , you can choose anything else depending upon your requirements.

On Oracle Cloud Infrastructure open the following Ports

Service Ports that we need are 2181 , 3030 , Range 8081-8083 , Range 9581-9585,  9092:9092 all of type TCP and CIDR Source being 0.0.0.0/0 ( Public Internet )

  • 3030 : Web Server
  • 9092 : Kafka Broker
  • 9581 : JMX
  • 8081 : Schema Registry
  • 9582 : JMX
  • 8082 : Kafka REST Proxy
  • 9583 : JMX
  • 8083 : Kafka Connect Distributed
  • 9584 : JMX
  • 2181 : ZooKeeper
  • 9585 : JMX

 

Downloading the Docker Image
 ubun[email protected]:~$ docker run --rm -it -p 2181:2181 -p 3030:3030 -p 
8081:8081 -p 8082:8082 -p 8083:8083 -p 9092:9092 -e ADV_HOST=publicip landoop/fast-data-dev
Unable to find image 'landoop/fast-data-dev:latest' locally latest: Pulling from landoop/fast-data-dev 4fe2ade4980c: Pull complete dde3e13a0db6: Pull complete dd15dddd8645: Pull complete 256d5aeb3e41: Pull complete 37b56afc3b63: Pull complete 27190792d7ca: Pull complete ea5a492b068c: Pull complete 9dfe942e8ef5: Pull complete 2ac9c1033b19: Pull complete b7c155be622e: Pull complete d127608652bd: Pull complete f5ec747a68a7: Pull complete 05a2813fc7e6: Pull complete Digest: sha256:3ffe2f11a0cf4f2cf380668fc26747fa00c73f5b054d57a6649438ea38c17da0 Status: Downloaded newer image for landoop/fast-data-dev:latest Setting advertised host to 132.145.169.51. Starting services. This is Landoop’s fast-data-dev. Kafka 1.1.1-L0 (Landoop's Kafka Distribution). You may visit http://132.145.169.51:3030 in about a minute. 2018-11-12 13:41:50,344 INFO Included extra file "/etc/supervisord.d/01-zookeeper.conf" during parsing 2018-11-12 13:41:50,344 INFO Included extra file "/etc/supervisord.d/02-broker.conf" during parsing 2018-11-12 13:41:50,344 INFO Included extra file "/etc/supervisord.d/03-schema-registry.conf" during parsing 2018-11-12 13:41:50,344 INFO Included extra file "/etc/supervisord.d/04-rest-proxy.conf" during parsing 2018-11-12 13:41:50,345 INFO Included extra file "/etc/supervisord.d/05-connect-distributed.conf" during parsing 2018-11-12 13:41:50,345 INFO Included extra file "/etc/supervisord.d/06-caddy.conf" during parsing 2018-11-12 13:41:50,345 INFO Included extra file "/etc/supervisord.d/07-smoke-tests.conf" during parsing 2018-11-12 13:41:50,345 INFO Included extra file "/etc/supervisord.d/08-logs-to-kafka.conf" during parsing 2018-11-12 13:41:50,345 INFO Included extra file "/etc/supervisord.d/99-supervisord-sample-data.conf" during parsing 2018-11-12 13:41:50,345 INFO Set uid to user 0 succeeded 2018-11-12 13:41:50,363 INFO RPC interface 'supervisor' initialized 2018-11-12 13:41:50,363 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2018-11-12 13:41:50,363 INFO supervisord started with pid 9 2018-11-12 13:41:51,367 INFO spawned: 'sample-data' with pid 166 2018-11-12 13:41:51,369 INFO spawned: 'zookeeper' with pid 167 2018-11-12 13:41:51,371 INFO spawned: 'caddy' with pid 168 2018-11-12 13:41:51,375 INFO spawned: 'broker' with pid 169 2018-11-12 13:41:51,380 INFO spawned: 'smoke-tests' with pid 170 2018-11-12 13:41:51,392 INFO spawned: 'connect-distributed' with pid 172 2018-11-12 13:41:51,407 INFO spawned: 'logs-to-kafka' with pid 174 2018-11-12 13:41:51,422 INFO spawned: 'schema-registry' with pid 175 2018-11-12 13:41:51,425 INFO spawned: 'rest-proxy' with pid 178 2018-11-12 13:41:52,470 INFO success: sample-data entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: zookeeper entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: caddy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: broker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: smoke-tests entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: connect-distributed entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: logs-to-kafka entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: schema-registry entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2018-11-12 13:41:52,470 INFO success: rest-proxy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Create Writable Docker Container using Docker Run command

You can exit the shell by Ctrl+C , and run the below command to run docker container in detached mode

[email protected]:~$ docker run -d -p 2181:2181 -p 3030:3030 -p 8081-8083:8081-8083 -p 
9581-9585:9581-9585 -p 9092:9092 -e ADV_HOST=publicipaddress -e RUNNING_SAMPLEDATA=1 landoop/fast-data-dev
097202792f00d51902a04d29c105399bfaeabaf79e5ffa24cd612c60140aeb22
Run the Docker in Bash mode
[email protected]:~$ docker run --rm -it --net=host landoop/fast-data-dev bash
// Create Topic
[email protected] / $ kafka-topics --zookeeper public_ipaddress:2181
--create --topic cricket_topic --partitions 3 --replication-factor 1
WARNING: Due to limitations in metric names, topics with a period ('.')
or underscore ('_') could collide.
To avoid issues it is best to use either, but not both.
Created topic "cricket_topic".
To get rid of Warning Signs
[email protected] / $ kafka-topics --zookeeper public_ipaddress:2181
--create --topic soccertopic --partitions 3 --replication-factor 1
Created topic "soccertopic".
// Create Message Stream under the given topic
[email protected]:~$ docker run --rm -it --net=host landoop/fast-data-dev bash
[email protected] / $ kafka-console-producer --broker-list
public_ipaddress:9092 --topic cricket_topic
>this is message 1>
message 2>
message 3>
// Describe the Topic
[email protected] / $ kafka-topics --zookeeper public_ipaddress:2181 --describe --topic cricket_topic
[email protected] / $ kafka-topics --zookeeper publicip:2181 --describe --topic cricket_topic Topic:cricket_topic PartitionCount:3 ReplicationFactor:1 Configs: Topic: cricket_topic Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Topic: cricket_topic Partition: 1 Leader: 0 Replicas: 0 Isr: 0 Topic: cricket_topic Partition: 2 Leader: 0 Replicas: 0 Isr: 0
Reality Check Kafka Web UI

Access the Web UI under http://public ip address:3030

Wait for sometime 2 to 3 mins for health check to complete

View Test Results

View Topics and Corresponding Messages

JSON Format

Log in
  • Archive Blogs
    • Cloud-Blogs by Madhusudhan Rao
      • ADF
        • ADF based Android Apps
        • ADF CRUD Cascaded LOVs
        • ADF CRUD Operation
        • ADF for Dummies
        • ADF for Financial Services Software Development
      • Analytics & Visualization
        • Business Intelligence
        • Oracle BI & DV Cloud Service
        • setting up Oracle Analytics Cloud Instance and Data Visualization Techniques
      • App Servers & DevOps
        • How to deploy NodeJS Application on Oracle Application Container Cloud Service
        • Oracle Application Container Cloud Service
        • Oracle Java Cloud Service
      • Architecture
        • 01 Enterprise Business
        • 02 Content framework
        • 03 Enterprise Continuum
        • 04 Maturity Models
        • 05-Architecture Governance
        • 06-Preliminary Phase
        • 07-Architecture Vision
        • 08-Business Architecture
        • 09-Info Sys Architecture
        • 10-Tech Architecture
        • 11 Opportunities & Solns
        • 12-Migration Planning
        • 14 Implementation Governance
        • 15 Change Management
        • 16-Requirement Management
        • 17 Reference Models
        • Cloud Architecture Concepts
          • 01 Architecture Concepts - Regulatory Compliance, Security monitoring and Storage protocols
          • 02 Architecture - Network Concepts and Bare Metal
          • 03 Enterprise Solution Architecture - Best Practices
          • 04 Cloud Architecture Concepts
        • Value Selling Techniques
      • OCI Admin Blogs
        • Create Oracle Cloud Infrastructure Instance
        • ElasticSearch & Kibana - Must for All Search Engine Development
        • How to Create Oracle Bare metal Compute Instance
        • Measuring Latency and TraceRoute Details with Oracle Edge Services
        • OCI Oracle cloud infrastructure - Setting up a NAT Instances for Public Internet Access from a Private Subnet
        • Oracle Cloud Infrastructure - OCI Creating buckets and object storage - setting up self expiry URLs
        • Oracle Cloud Infrastructure OCI - Create Instance ,Attach Block Volume , Open Ports, Setup Firewall rules
        • Python Basics
        • setting up Apache Tomcat on Oracle Cloud Infrastructure OCI
        • setting up CloudFlare DNS & HAProxy on Oracle Cloud Infrastructure for High Availability
        • Setting up Django Python Web Environment on Oracle Cloud
        • setting up File Storage on OCI and uploading files through Filezilla FTP
        • Setting up GPU-enabled Narupa server on Oracle Bare Metal Cloud for Virtual Reality Clients
        • setting up LAMP Stack , PHP 5.6, PhpMyAdmin , FTP and Mail Server on OCI
        • setting up Load Balancer on Oracle Cloud Infrastructure
        • setting up MongoDB Enterprise version Instance on Oracle Cloud Infrastructure Baremetal
        • setting up MongoDB on Oracle Cloud Infrastructure Classic and Opening Ports
        • Setting up SSH , FTP and Opening Ports on Oracle Cloud PaaS and IaaS
        • setting up web infrastructure DNS and HTTPS for your cloud Infrastructure as a Service OCI
        • World of Slack Programming
      • OCI Classic Blogs
        • How to Create WordPress blog on Oracle Cloud
        • running Function as a Service on Oracle Cloud Infrastructure - fnproject.io
        • running Hadoop & Big Data on Oracle Cloud Infrastructure
        • running TensorFlow Machine Learning for Image Recognition on Oracle Cloud Infrastructure
        • Setting up Kubernetes on Oracle Cloud Infrastructure - Classic
      • Oracle BPM for Financial Services
        • BPM for FS
        • 1. Setting up the development environment
        • 2. Modeling a home loan business process
        • 3. Implementing a home loan business process
        • 4. Deploying and testing a process workflow
        • 5. Administering processes
        • 6. Changing a business process by the process analyst
        • 7. Creating business reports for process owners
        • 8. Participating in a business process
        • 9. Integrating with business partners
        • 10. Collaborating with customers and end users
      • Oracle JET Series
    • Dockers on OCI Series
      • Comprehensive Blog on Dockers running on OCI
      • running a Docker Container on OCI
      • opening OCI Ports for Docker Containers
      • Building a Docker Image by using Dockerfile
      • Committing changes made in a Docker without using Dockerfile
      • pushing image to Docker Hub
      • DevOps with Github, Docker Hub and Oracle Container Cloud Services
      • running Apache Kafka for continuous data streaming on Oracle cloud infrastructure
    • Oracle Database Cloud Service
    • Oracle OKE Series
      • 01 Comprehensive Blog on Oracle Kubernetes Engine - getting started
      • 02 Configure Network Resources for Oracle Kubernetes Engine
      • 03 Creating 3 Worker and 2 Load Balancers Subnets for OKE
      • 04 Creating Oracle Kubernetes Cluster
      • 05 - Enable Cluster access through Command line interface
      • 06 - Getting onto Oracle Kubernetes Engine Dashboard
      • 07 Pod Configuration using a YAML Deployment
    • setting up and running Oracle Big Data PaaS
    • Setting up MySQL PaaS on Oracle Cloud
    • SOA BPM IDM Portal Series
      • FMW
        • Comprehensive Business Process Management - BPM 11g
        • FMW Install Startup Scripts
        • Oracle 11gR2 and 12c Database on Linux / OEL / Fedora
        • Oracle Identity Mangement
        • PS6, PS7, PS8 Install and Configuration
      • Webcenter Portal
        • Art of Webcenter Templating
        • Webcenter Sites Installation Linux
        • Webcenter Sites Look n feel
        • Webcenter Spaces
          • Custom Landing Page
        • Webcenter UCM Integration PS5
        • Webcenter, BPM Process Spaces - UCM PS5
        • BPM UCM and Webcenter PS5
      • BPM Series
        • 01-Simple BPM Task Initiator
        • 02-Business Rules and Exclusive Gateway
        • 03-Service Invocation Adapters
        • 04-BPM as a Web Service
        • 05-Mediator and Conditional Service Routing
        • 06-BPM Composer - Runtime Edit
        • 07-BPM and JMS Adapters
        • Oracle BPM 12c features
      • Process Cloud Service
        • Part 1 - Working with Process Cloud Service
        • Part 2 – How to Build Process , Data Persistence in Database Cloud Service
        • Part 3 – Invoking PCS Process from Oracle JET Framework
      • SOA Series
        • Oracle OSB 11g
        • Oracle SOA 11g Business Rules
        • Oracle SOA 11g DB Adapter
        • Oracle SOA 11g Mediator
        • SOA 11g AQ Adapters
    • Terraform on OCI Series
      • Create a Highly Scalable Cluster in the cloud using Terraform on OCI
      • Creating an Instance with New VNC Network
      • Managing the OCI Cluster with Slurm Workload Manager & Grafana
      • Terraform on OCI create instance
      • Terraform on OCI create load balancer
      • Terraform on OCI create non-federated user
      • Terraform on OCI create user, group, dynamic group and policies
      • Terraform on Oracle Cloud OCI
  • Database Developer Series
  • Database Series
    • Autonomous Data Warehouse and Analytics
      • 01 Preparing Client Machine
      • 02 Creating Autonomous Data Warehouse Instance
      • 03 Creating Tables into Autonomous Data Warehouse through SQL Developer
      • 04 Load Data into OCI Object storage and import that data into Autonomous Data warehouse
      • 05 Create Autonomous Analytics Cloud ADW Connection and create Data Visualization
    • Oracle Apex Cloud Service

"Technology has the shelf life of a banana. By the time you buy it, implement it and train people on it, it’s obsolete. … ” as said by Mr Scott McNealy

© 2023 Cloud Blogs | Powered by Minimalist Blog WordPress Theme