Skip to content

Commit 6bc78a9

Browse files
committed
fix for #6580
1 parent beb5199 commit 6bc78a9

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
services:
3+
4+
mapr:
5+
image: maprtech/dev-sandbox-container:6.1.0_6.0.0_ubuntu16 # https://mapr.com/docs/60/MapRContainerDevelopers/RunMapRContainerDevelopers.html
6+
hostname: maprdemo
7+
container_name: mapr
8+
privileged: true
9+
ports:
10+
- "8443:8443"
11+
networks:
12+
testing_net:
13+
ipv4_address: 172.28.1.1
14+
environment:
15+
isSecure: "true"
16+
clusterName: "maprdemo.mapr.io"
17+
MAPR_EXTERNAL: "172.28.1.2"
18+
19+
connect:
20+
depends_on:
21+
- mapr
22+
networks:
23+
testing_net:
24+
ipv4_address: 172.28.1.2
25+
volumes:
26+
- ../../connect/connect-mapr-sink/maprtech.repo:/etc/yum.repos.d/maprtech.repo
27+
environment:
28+
CONNECT_PLUGIN_PATH: /usr/share/confluent-hub-components/confluentinc-kafka-connect-maprdb
29+
KAFKA_OPTS: "-Dmapr.home.dir=/opt/mapr -Dmapr.library.flatclass -Djava.security.auth.login.config=/opt/mapr/conf/mapr.login.conf"
30+
31+
broker:
32+
networks:
33+
testing_net:
34+
ipv4_address: 172.28.1.3
35+
36+
zookeeper:
37+
networks:
38+
testing_net:
39+
ipv4_address: 172.28.1.4
40+
41+
schema-registry:
42+
networks:
43+
testing_net:
44+
ipv4_address: 172.28.1.5
45+
46+
control-center:
47+
networks:
48+
testing_net:
49+
ipv4_address: 172.28.1.6
50+
51+
52+
controller:
53+
networks:
54+
testing_net:
55+
ipv4_address: 172.28.1.7
56+
57+
networks:
58+
testing_net:
59+
ipam:
60+
driver: default
61+
config:
62+
- subnet: 172.28.0.0/16
63+

connect/connect-mapr-sink/mapr-sink.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ sed -e "s|:HPE_MAPR_EMAIL:|$HPE_MAPR_EMAIL|g" \
3030
../../connect/connect-mapr-sink/maprtech.repo.template > ../../connect/connect-mapr-sink/maprtech.repo
3131

3232
PLAYGROUND_ENVIRONMENT=${PLAYGROUND_ENVIRONMENT:-"plaintext"}
33-
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.yml"
33+
34+
if [ ! -z $ENABLE_KRAFT ]
35+
then
36+
# KRAFT mode
37+
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose-kraft.yml"
38+
else
39+
# Zookeeper mode
40+
playground start-environment --environment "${PLAYGROUND_ENVIRONMENT}" --docker-compose-override-file "${PWD}/docker-compose.plaintext.yml"
41+
fi
3442

3543
# useful script
3644
# https://docs.ezmeral.hpe.com/datafabric-customer-managed/74/MapRContainerDevelopers/MapRContainerDevelopersOverview.html

0 commit comments

Comments
 (0)