Fix:kafka package not found by kafka package url

INFO:kolla.common.utils.kafka:Step 9/12 : RUN curl -sSL -o /tmp/kafka.tgz ${kafka_url}     && echo "${kafka_pkg_sha512sum} /tmp/kafka.tgz" | sha512sum -c     && tar --strip 1 -xvf /tmp/kafka.tgz -C /opt/kafka     && rm -f /tmp/kafka.tgz
INFO:kolla.common.utils.kafka: ---> Running in 2b751bf5c975
INFO:kolla.common.utils.kafka:curl (http://apache.osuosl.org/kafka/1.0.2/kafka_2.12-1.0.2.tgz): response: 404, time: 0.198, size: 297
INFO:kolla.common.utils.kafka:/tmp/kafka.tgz: FAILED
INFO:kolla.common.utils.kafka:[91msha512sum: WARNING: 1 computed
checksum did NOT match

Closes-bug: #1822030
Change-Id: Ib9a1bc5c0a69f7780e600404601ae875561450cd
(cherry picked from commit 8dfc0ae0d9)
This commit is contained in:
白永君 2019-03-28 12:07:45 +08:00 committed by Mark Goddard
parent 48ad8d25b2
commit 68343553de
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{{ macros.install_packages(kafka_packages | customizable("packages")) }}
{% block kafka_install %}
RUN curl -o kafka.tgz http://apache.osuosl.org/kafka/0.10.2.2/kafka_2.11-0.10.2.2.tgz \
RUN curl -o kafka.tgz https://archive.apache.org/dist/kafka/0.10.2.2/kafka_2.11-0.10.2.2.tgz \
&& tar xfvz kafka.tgz \
&& rm kafka.tgz \
&& ln -s kafka* kafka