You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Important Note**: As of KSM 0.4, a new column `PatternType` has been added to match the changes that happened in Kafka 2.0. This enables KSM to manage `LITERAL` and `PREFIXED` ACLs. See #28
26
+
25
27
# Building
26
28
27
29
```
@@ -136,11 +138,6 @@ docker-compose down
136
138
137
139
For full usage of the docker-compose file see [kafka-stack-docker-compose](https://github.com/simplesteph/kafka-stack-docker-compose)
138
140
139
-
Add the entry to your `/etc/hosts` file
140
-
```
141
-
127.0.0.1 kafka1
142
-
```
143
-
144
141
## Extracting ACLs
145
142
146
143
You can initially extract all your existing ACL in Kafka by running the program with the config `extract=true` or `export EXTRACT=true`
@@ -151,10 +148,10 @@ Output should look like:
151
148
[2018-03-06 21:49:44,704] INFO Getting ACLs from Kafka (ExtractAcl)
152
149
[2018-03-06 21:49:44,704] INFO Closing Authorizer (ExtractAcl)
PatternType.fromString(row(PATTERN_TYPE_COL).toUpperCase)) match {
70
+
caseSuccess(pt) => pt
71
+
caseFailure(e: NoSuchElementException) =>
72
+
// column is missing
73
+
log.warn(s"""Since you upgraded to Kafka 2.0, your CSV needs to include an extra column '$PATTERN_TYPE_COL', after $RESOURCE_TYPE_COL and before $RESOURCE_NAME_COL.
74
+
|The CSV header should be: KafkaPrincipal,ResourceType,PatternType,ResourceName,Operation,PermissionType,Host
75
+
|For a quick fix, you can run the application with KSM_EXTRACT=true and replace your current CSV with the output of the command
76
+
|For backwards compatibility, the default value $PATTERN_TYPE_COL=LITERAL has been chosen""".stripMargin)
0 commit comments