Skip to content

Commit

Permalink
Fix kafka download issue.
Browse files Browse the repository at this point in the history
It looks like Kafka 0.9.x was removed from mirrors, so switch to
downloading from the archive.

Signed-off-by: Tim Buckley <timothy.jas.buckley@hpe.com>
  • Loading branch information
timothyb89 committed Apr 26, 2018
1 parent 345c175 commit fa80871
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kafka/Dockerfile
Expand Up @@ -5,6 +5,8 @@ ARG SCALA_VERSION=2.11
ARG KAFKA_KEYS=https://kafka.apache.org/KEYS
ARG ASC_MIRROR=https://dist.apache.org/repos/dist/release/kafka
ARG SKIP_VERIFY=false
ARG MIRROR=https://www.apache.org/dyn/closer.cgi
ARG DIRECT=""

ENV KAFKA_HOSTNAME_FROM_IP=true \
ZOOKEEPER_CONNECTION_STRING=zookeeper:2181 \
Expand Down
5 changes: 5 additions & 0 deletions kafka/build.yml
Expand Up @@ -4,3 +4,8 @@ variants:
args:
KAFKA_VERSION: "0.9.0.1"
SCALA_VERSION: "2.11"

# it seems kafka 0.9.x has been removed from mirrors...
MIRROR: 'http://archive.apache.org/dist/'
ASC_MIRROR: 'http://archive.apache.org/dist/kafka'
DIRECT: 'true'
3 changes: 3 additions & 0 deletions kafka/kafka_mirror.py
Expand Up @@ -28,6 +28,9 @@


def main():
print('MIRROR:', MIRROR, file=sys.stderr)
print('DIRECT:', DIRECT, file=sys.stderr)

if len(sys.argv) != 3:
print('Usage: {0} [kafka_version] [scala_version]'.format(sys.argv[0]))
sys.exit(1)
Expand Down
1 change: 1 addition & 0 deletions kafka/templates/server.properties.j2
Expand Up @@ -98,5 +98,6 @@ zookeeper.session.timeout.ms={{ ZOOKEEPER_SESSION_TIMEOUT_MS | default(10000) }}
############################# Additional Broker Settings #######################
controlled.shutdown.enable={{ KAFKA_CONTROLLED_SHUTDOWN_ENABLE | default('true') }}
group.max.session.timeout.ms={{ KAFKA_GROUP_MAX_SESSION_TIMEOUT_MS | default(300000) }}
connections.max.idle.ms={{ KAFKA_CONNECTION_IDLE_TIMEOUT_MS | default(300000) }}

# vim:set filetype=jproperties

0 comments on commit fa80871

Please sign in to comment.