- 52.41.18.116 -> 10.0.1.100
- 54.68.20.222 -> 10.0.1.200
echo 'export KAFKA_HEAP_OPTS="-Xmx1000M"' >> ~/.bashrc
wget --content-disposition https://downloads.apache.org/kafka/2.5.0/kafka_2.12-2.5.0.tgz
tar -xzf kafka_2.12-2.5.0.tgz
| openapi: "3.0.0" | |
| info: | |
| title: Lights | |
| version: "1.0" | |
| servers: | |
| - url: http://localhost:9090/v1.0 | |
| paths: | |
| /random: |
| # when you type the id of a docker container into a command like `docker exec` you can | |
| # type just the "prefix" characters needed to uniquely identify the container name | |
| # Challenge: write a function that takes a list of container ids and outputs the prefixes that | |
| # would uniquely identify the an id in the list. | |
| import sys | |
| if not sys.stdin.isatty(): | |
| # grab the list of containers from stdin | |
| # so you can use it from the command line like this: |
| FROM golang:1.14 | |
| WORKDIR /go/src/app | |
| COPY . . | |
| RUN go build hello-world.go | |
| FROM scratch | |
| COPY --from=0 /go/src/app/hello-world . | |
| CMD ["./hello-world"] |
| -----BEGIN CERTIFICATE----- | |
| MIIC7TCCAq0CCQCWukjZ5V4aZzAJBgcqhkjOOAQDMFwxCzAJBgNVBAYTAlVTMRkw | |
| FwYDVQQIExBXYXNoaW5ndG9uIFN0YXRlMRAwDgYDVQQHEwdTZWF0dGxlMSAwHgYD | |
| VQQKExdBbWF6b24gV2ViIFNlcnZpY2VzIExMQzAeFw0xMjAxMDUxMjU2MTJaFw0z | |
| ODAxMDUxMjU2MTJaMFwxCzAJBgNVBAYTAlVTMRkwFwYDVQQIExBXYXNoaW5ndG9u | |
| IFN0YXRlMRAwDgYDVQQHEwdTZWF0dGxlMSAwHgYDVQQKExdBbWF6b24gV2ViIFNl | |
| cnZpY2VzIExMQzCCAbcwggEsBgcqhkjOOAQBMIIBHwKBgQCjkvcS2bb1VQ4yt/5e | |
| ih5OO6kK/n1Lzllr7D8ZwtQP8fOEpp5E2ng+D6Ud1Z1gYipr58Kj3nssSNpI6bX3 | |
| VyIQzK7wLclnd/YozqNNmgIyZecN7EglK9ITHJLP+x8FtUpt3QbyYXJdmVMegN6P | |
| hviYt5JH/nYl4hh3Pa1HJdskgQIVALVJ3ER11+Ko4tP6nwvHwh6+ERYRAoGBAI1j |
echo 'export KAFKA_HEAP_OPTS="-Xmx1000M"' >> ~/.bashrc
wget --content-disposition https://downloads.apache.org/kafka/2.5.0/kafka_2.12-2.5.0.tgz
tar -xzf kafka_2.12-2.5.0.tgz
| # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except | |
| # in compliance with the License. A copy of the License is located at | |
| # | |
| # https://aws.amazon.com/apache-2-0/ | |
| # | |
| # or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations under the License. |
| apt update --assume-yes && \ | |
| apt install docker.io --assume-yes && \ | |
| apt install docker-compose --assume-yes && \ | |
| usermod -a -G docker ubuntu |
| package clients; | |
| import clients.avro.PositionValue; | |
| import io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig; | |
| import io.confluent.kafka.serializers.KafkaAvroSerializer; | |
| import io.confluent.kafka.serializers.KafkaAvroSerializerConfig; | |
| import io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor; | |
| import java.io.File; | |
| import java.io.IOException; |