Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kafka_protocol to get ready for kafka 1.1
- Loading branch information
Showing
58 changed files
with
1,678 additions
and
3,069 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
KafkaServer { | ||
org.apache.kafka.common.security.plain.PlainLoginModule required | ||
user_admin="nimda" | ||
user_alice="ecila"; | ||
|
||
org.apache.kafka.common.security.scram.ScramLoginModule required | ||
username="admin" | ||
password="nimda"; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
KafkaServer { | ||
org.apache.kafka.common.security.plain.PlainLoginModule required | ||
user_admin="admin-secret" | ||
user_alice="alice-secret"; | ||
user_admin="nimda" | ||
user_alice="ecila"; | ||
}; |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{deps, [ {supervisor3, "1.1.5"} | ||
, {kafka_protocol, "1.1.2"} | ||
, {kafka_protocol, "2.0.0"} | ||
]}. | ||
{erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,warn_obsolete_guard,debug_info]}. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
IsRebar3 = erlang:function_exported(rebar3, main, 1), | ||
|
||
case IsRebar3 of | ||
true -> | ||
CONFIG; | ||
false -> | ||
Rebar3Deps = proplists:get_value(deps, CONFIG), | ||
Rebar2Deps = [ | ||
{supervisor3, ".*", | ||
{git, "https://github.com/klarna/supervisor3", | ||
{tag, proplists:get_value(supervisor3, Rebar3Deps)}}}, | ||
{kafka_protocol, ".*", | ||
{git, "https://github.com/klarna/kafka_protocol.git", | ||
{tag, proplists:get_value(kafka_protocol, Rebar3Deps)}}} | ||
], | ||
lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps}) | ||
true -> | ||
CONFIG; | ||
false -> | ||
URLs = [ {supervisor3, "https://github.com/klarna/supervisor3.git"} | ||
, {kafka_protocol, "https://github.com/klarna/kafka_protocol.git"} | ||
], | ||
Rebar3Deps = proplists:get_value(deps, CONFIG), | ||
Rebar2Deps = | ||
lists:map( | ||
fun({Name, URL}) -> | ||
case proplists:get_value(Name, Rebar3Deps) of | ||
{git, _, _} = Git -> {Name, ".*", Git}; | ||
Vsn -> {Name, ".*", {git, URL, {tag, Vsn}}} | ||
end | ||
end, URLs), | ||
lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps}) | ||
end. |
Oops, something went wrong.