File tree Expand file tree Collapse file tree 2 files changed +72
-1
lines changed
connect/connect-mapr-sink Expand file tree Collapse file tree 2 files changed +72
-1
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -30,7 +30,15 @@ sed -e "s|:HPE_MAPR_EMAIL:|$HPE_MAPR_EMAIL|g" \
30
30
../../connect/connect-mapr-sink/maprtech.repo.template > ../../connect/connect-mapr-sink/maprtech.repo
31
31
32
32
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
34
42
35
43
# useful script
36
44
# https://docs.ezmeral.hpe.com/datafabric-customer-managed/74/MapRContainerDevelopers/MapRContainerDevelopersOverview.html
You can’t perform that action at this time.
0 commit comments