This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To start the Zookeeper | |
bin/zookeeper-server-start.sh config/zookeeper.properties | |
#To start the Kafka broker | |
/bin/kafka-server-start.sh /config/server.properties | |
#To start the Kafka connect | |
/bin/connected-distributed.sh /config/connected-distributed.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -k -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d '{ | |
"name": "mysql-connector-demo", | |
"config": { | |
"connector.class": "io.debezium.connector.mysql.MySqlConnector", | |
"database.hostname": "localhost", | |
"database.port": "3306", | |
"database.user": "debezium", | |
"database.password": "dbz", | |
"database.server.id": "1", | |
"database.server.name": "dbserver1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"payload": { | |
"before": null, | |
"after": { | |
"id": 1016, | |
"first_name": "Smart", | |
"last_name": "Techie", | |
"email": "smarttechie@gmail.com" | |
}, | |
"source": { | |
"version": "1.4.2.Final", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"payload": { | |
"before": { | |
"id": 1016, | |
"first_name": "Smart", | |
"last_name": "Techie", | |
"email": "smarttechie@gmail.com" | |
}, | |
"after": { | |
"id": 1016, | |
"first_name": "Smart", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"payload": { | |
"before": { | |
"id": 1016, | |
"first_name": "Smart", | |
"last_name": "Techie", | |
"email": "smarttechie_updated@gmail.com" | |
}, | |
"after": null, | |
"source": { | |
"version": "1.4.2.Final", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker push docker.io/2013techsmarts/spingboot-demo-buildpacks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -p 8080:8080 --name springbootcontainer spingboot-demo-buildpacks:0.0.1-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./mvnw spring-boot:build-image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.smarttechie.controller; | |
import org.springframework.web.bind.annotation.GetMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@RestController | |
public class DemoController { | |
@GetMapping | |
public String hello() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.3.0.RELEASE</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> |
NewerOlder