Skip to content

Commit 6fcd777

Browse files
committedJul 19, 2017
[FAB-5252] Fix make failures for non-default versions
`make kafka` will fail even if the user edits the `KAFKA_VERSION`, `KAFKA_DOWNLOAD_SHA1`, and `SCALA_VERSION` values. This changeset addresses this. Change-Id: I8937280dae1085e98d3ae6b949c0bfb70b4f2ec6 Signed-off-by: Kostas Christidis <kostas@christidis.io>
1 parent f67b9c9 commit 6fcd777

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
 

‎docs/source/kafka.rst

+8-4
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ also set the preferred size of blocks by setting the
168168
``Orderer.Batchsize.PreferredMaxBytes`` key. Kafka offers higher throughput when
169169
dealing with relatively small messages; aim for a value no bigger than 1 MiB.
170170

171-
2. **Using environment variables to override settings.** You can override a
171+
2. **Using environment variables to override settings.** When using the sample
172+
Kafka and Zookeeper Docker images provided with Hyperledger Fabric (see
173+
``images/kafka`` and ``images/zookeeper`` respectively), you can override a
172174
Kafka broker or a ZooKeeper server's settings by using environment variables.
173175
Replace the dots of the configuration key with underscores --
174176
e.g. ``KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false`` will allow you to override
@@ -184,9 +186,11 @@ Supported Kafka versions for v1 are ``0.9`` and ``0.10``. (Hyperledger Fabric
184186
uses the `sarama client library <https://github.com/Shopify/sarama>`_
185187
and vendors a version of it that supports Kafka 0.9 and 0.10.)
186188

187-
Out of the box the Kafka version defaults to ``0.9.0.1``. If you wish to use a
188-
different supported version, specify a supported version using the
189-
``Kafka.Version`` key in ``orderer.yaml``.
189+
Out of the box the Kafka version defaults to ``0.9.0.1``. The sample Kafka
190+
image provided by Hyperledger Fabric matches this default version. If you are
191+
not using the sample Kafka image provided by Hyperledger Fabric, ensure that
192+
you specify your Kafka cluster's Kafka version using the ``Kafka.Version`` key
193+
in ``orderer.yaml``.
190194

191195
The current supported Kafka versions are:
192196

‎images/kafka/Dockerfile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ENV SCALA_VERSION=2.11 \
88
KAFKA_VERSION=0.9.0.1 \
99
KAFKA_DOWNLOAD_SHA1=FC9ED9B663DD608486A1E56197D318C41813D326
1010

11-
RUN curl -fSL "http://www-us.apache.org/dist/kafka/0.9.0.1/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" -o kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz \
11+
RUN curl -fSL "http://www-us.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" -o kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz \
1212
&& echo "${KAFKA_DOWNLOAD_SHA1} kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" | sha1sum -c - \
1313
&& tar xfz kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt \
1414
&& mv /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION" /opt/kafka \

0 commit comments

Comments
 (0)
Please sign in to comment.