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
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.google.common.io.Resources; | |
import com.google.gson.Gson; | |
import com.google.inject.Inject; | |
import com.google.inject.name.Named; | |
import org.apache.avro.io.DatumReader; | |
import org.apache.avro.specific.SpecificRecordBase; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.kafka.clients.producer.KafkaProducer; | |
import org.apache.kafka.clients.producer.Producer; |
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
asyncapi: 2.0.0 | |
info: | |
title: Test Async API | |
version: '0.1.0' | |
channels: | |
example: | |
publish: | |
message: |
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
# Based on https://www.digitalocean.com/community/tutorials/how-to-install-git-on-centos-7#option-two-%E2%80%94-install-git-from-source | |
yum groupinstall "Development Tools" | |
yum install gettext-devel openssl-devel perl-CPAN perl-devel | |
#if necessary | |
#yum install zlib-devel | |
#yum install perl-ExtUtils-MakeMaker | |
export GIT_VERSION='2.16.2' | |
wget https://github.com/git/git/archive/v$GIT_VERSION.tar.gz -O /tmp/git.tar.gz | |
su -c 'tar -zxvf /tmp/git.tar.gz' -C /tmp' |
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
# The first thing we need to do is to download the Maven tar file and untar it to a shared location on the workstation | |
# wget required (yum install wget) | |
# STEP 1 - Get Maven Install | |
export JAVA_HOME='/etc/alternatives/jre_1.8.0' | |
export MAVEN_VERSION='3.5.2' | |
export MAVEN_MIRROR='http://apache.mindstudios.com' | |
wget $MAVEN_MIRROR/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz -P /tmp |