GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [improve][io] Upgrade AWS SDK v1 & v2, Kinesis KPL and KPC versions (… · apache/pulsar@dc2ab26

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docker
    • kinesis-producer-alpine
      • Dockerfile
      • README.md
      • build-alpine.sh
      • kinesis_producer_alpine.patch
    • pulsar-all
      • pom.xml
  • pom.xml
  • pulsar-io
    • aws
      • pom.xml
    • kinesis-kpl-shaded
      • pom.xml
    • kinesis
      • pom.xml
      • src
        • main/java/org/apache/pulsar/io/kinesis
          • KinesisSink.java
          • KinesisSinkConfig.java
        • test/java/org/apache/pulsar/io/kinesis
          • KinesisSinkConfigTest.java
    • pom.xml
  • tests/integration
    • pom.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docker/kinesis-producer-alpine/Dockerfile‎

Copy file name to clipboardExpand all lines: docker/kinesis-producer-alpine/Dockerfile
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG ALPINE_VERSION=3.21
2323

2424
# Build stage
2525
FROM alpine:$ALPINE_VERSION AS kinesis-producer-build
26-
ENV KINESIS_PRODUCER_LIB_VERSION=0.15.12
26+
ENV KINESIS_PRODUCER_LIB_VERSION=1.0.4
2727

2828
# Install build dependencies
2929
RUN apk update && apk add --no-cache \
Collapse file

‎docker/kinesis-producer-alpine/README.md‎

Copy file name to clipboardExpand all lines: docker/kinesis-producer-alpine/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This image only needs to be re-created when we want to upgrade to a newer versio
3232
2. Rebuild the image and push it to Docker Hub:
3333
```
3434
IMAGE=apachepulsar/pulsar-io-kinesis-sink-kinesis_producer
35-
KINESIS_PRODUCER_VERSION=0.15.12
35+
KINESIS_PRODUCER_VERSION=1.0.4
3636
docker buildx build --platform=linux/amd64,linux/arm64 \
3737
-t "$IMAGE:$KINESIS_PRODUCER_VERSION" -t "$IMAGE:${KINESIS_PRODUCER_VERSION}-$(date -I)" \
3838
. --push
Collapse file

‎docker/kinesis-producer-alpine/build-alpine.sh‎

Copy file name to clipboardExpand all lines: docker/kinesis-producer-alpine/build-alpine.sh
+67-45Lines changed: 67 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,25 @@
2020

2121
set -e
2222
set -x
23+
SILENT="n"
2324

24-
INSTALL_DIR=/build/third_party
25-
AWS_SDK_CPP_VERSION="1.11.420"
26-
PROTOBUF_VERSION="3.11.4"
27-
BOOST_VERSION="1.76.0"
28-
BOOST_VERSION_UNDERSCORED="${BOOST_VERSION//\./_}"
25+
silence() {
26+
if [ -n "$SILENT" ]; then
27+
"$@" >/dev/null
28+
else
29+
"$@"
30+
fi
31+
}
32+
33+
BOOST_VERSION="1.88.0"
34+
BOOST_VERSION_UNDERSCORED="${BOOST_VERSION//\./_}" # convert from 1.76.0 to 1_76_0
35+
PROTOBUF_VERSION="21.12"
36+
AWS_SDK_CPP_VERSION="1.11.615"
37+
38+
LIB_BOOST="https://archives.boost.io/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORED}.tar.gz"
39+
LIB_PROTOBUF="https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-all-${PROTOBUF_VERSION}.tar.gz"
2940

41+
INSTALL_DIR=/build/third_party
3042
# Create install directory
3143
mkdir -p $INSTALL_DIR
3244

@@ -39,61 +51,67 @@ export LD_LIBRARY_PATH="$INSTALL_DIR/lib:$LD_LIBRARY_PATH"
3951

4052
cd $INSTALL_DIR
4153

42-
# Build protobuf
43-
if [ ! -d "protobuf-${PROTOBUF_VERSION}" ]; then
44-
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-all-${PROTOBUF_VERSION}.tar.gz
45-
tar xf protobuf-all-${PROTOBUF_VERSION}.tar.gz
46-
rm protobuf-all-${PROTOBUF_VERSION}.tar.gz
47-
48-
cd protobuf-${PROTOBUF_VERSION}
49-
./configure --prefix=${INSTALL_DIR} \
50-
--disable-shared \
51-
CFLAGS="-fPIC" \
52-
CXXFLAGS="-fPIC ${CXXFLAGS}" \
53-
--with-pic
54-
make -j4
55-
make install
56-
cd ..
57-
fi
58-
59-
# Build Boost
54+
SED="sed -i"
55+
CMAKE=$(which cmake3 &>/dev/null && echo "cmake3 " || echo "cmake")
56+
function _curl {
57+
curl -L "$@"
58+
}
59+
60+
function conf {
61+
silence ./configure \
62+
--prefix="$INSTALL_DIR" \
63+
LD_LIBRARY_PATH="$LD_LIBRARY_PATH" \
64+
LDFLAGS="$LDFLAGS" \
65+
CXXFLAGS="$CXXFLAGS" \
66+
C_INCLUDE_PATH="$C_INCLUDE_PATH" \
67+
"$@"
68+
}
69+
70+
# Boost C++ Libraries
6071
if [ ! -d "boost_${BOOST_VERSION_UNDERSCORED}" ]; then
61-
curl -LO https://archives.boost.io/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
62-
tar xf boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
63-
rm boost_${BOOST_VERSION_UNDERSCORED}.tar.gz
72+
_curl "$LIB_BOOST" >boost.tgz
73+
tar xf boost.tgz
74+
rm boost.tgz
6475

6576
cd boost_${BOOST_VERSION_UNDERSCORED}
6677

67-
BOOST_LIBS="regex,thread,log,system,random,filesystem,chrono,atomic,date_time,program_options,test"
78+
LIBS="atomic,chrono,log,system,test,random,regex,thread,filesystem"
79+
OPTS="--build-type=minimal --layout=system --prefix=$INSTALL_DIR link=static threading=multi release install"
6880

69-
./bootstrap.sh --with-libraries=$BOOST_LIBS --with-toolset=gcc
81+
silence ./bootstrap.sh --with-libraries="$LIBS" --with-toolset=gcc
82+
silence ./b2 toolset=gcc $OPTS
7083

71-
./b2 \
72-
-j4 \
73-
variant=release \
74-
link=static \
75-
threading=multi \
76-
runtime-link=static \
77-
--prefix=${INSTALL_DIR} \
78-
cxxflags="-fPIC ${CXXFLAGS}" \
79-
install
84+
cd ..
85+
fi
86+
87+
# Google Protocol Buffers
88+
if [ ! -d "protobuf-${PROTOBUF_VERSION}" ]; then
89+
_curl "$LIB_PROTOBUF" >protobuf.tgz
90+
tar xf protobuf.tgz
91+
rm protobuf.tgz
92+
93+
cd protobuf-${PROTOBUF_VERSION}
94+
silence conf --enable-shared=no
95+
silence make -j 4
96+
silence make install
8097

8198
cd ..
8299
fi
83100

84-
# Download and build AWS SDK
101+
# AWS C++ SDK
85102
if [ ! -d "aws-sdk-cpp" ]; then
86-
git clone --depth 1 --branch ${AWS_SDK_CPP_VERSION} https://github.com/awslabs/aws-sdk-cpp.git aws-sdk-cpp
103+
git clone https://github.com/awslabs/aws-sdk-cpp.git aws-sdk-cpp
87104
pushd aws-sdk-cpp
88-
git config submodule.fetchJobs 8
89-
git submodule update --init --depth 1 --recursive
105+
git checkout ${AWS_SDK_CPP_VERSION}
106+
git submodule update --init --recursive
90107
popd
91108

92109
rm -rf aws-sdk-cpp-build
93110
mkdir aws-sdk-cpp-build
111+
94112
cd aws-sdk-cpp-build
95113

96-
cmake \
114+
silence $CMAKE \
97115
-DBUILD_ONLY="kinesis;monitoring;sts" \
98116
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
99117
-DSTATIC_LINKING=1 \
@@ -105,15 +123,19 @@ if [ ! -d "aws-sdk-cpp" ]; then
105123
-DCMAKE_FIND_FRAMEWORK=LAST \
106124
-DENABLE_TESTING="OFF" \
107125
../aws-sdk-cpp
108-
make -j4
109-
make install
126+
silence make -j4
127+
silence make install
128+
110129
cd ..
130+
111131
fi
112132

133+
cd ..
134+
113135
# Build the native kinesis producer
114136
cd /build/amazon-kinesis-producer
115137
ln -fs ../third_party
116-
cmake -DCMAKE_PREFIX_PATH="$INSTALL_DIR" -DCMAKE_BUILD_TYPE=RelWithDebInfo .
138+
$CMAKE -DCMAKE_PREFIX_PATH="$INSTALL_DIR" -DCMAKE_BUILD_TYPE=RelWithDebInfo .
117139
make -j4
118140

119141
FINAL_DIR=/opt/amazon-kinesis-producer
Collapse file

‎docker/kinesis-producer-alpine/kinesis_producer_alpine.patch‎

Copy file name to clipboardExpand all lines: docker/kinesis-producer-alpine/kinesis_producer_alpine.patch
+14-9Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
From 96ba2eb7145363586529e6c770dcc0920bf04ac2 Mon Sep 17 00:00:00 2001
1+
From 76518befa2b3b79931044267722feecfe1465d19 Mon Sep 17 00:00:00 2001
22
From: Lari Hotari <[email protected]>
3-
Date: Wed, 18 Dec 2024 17:16:02 +0200
4-
Subject: [PATCH] Adapt build for Alpine, fix issue with NULL_BACKTRACE support
3+
Date: Fri, 22 Aug 2025 21:25:49 +0300
4+
Subject: [PATCH] [PATCH] Adapt build for Alpine, fix issue with NULL_BACKTRACE
5+
support
56

6-
- also use dynamic linking to some libraries (zlib, openssl, libz, libcurl, libcrypto)
7-
to reduce binary size
87
---
98
CMakeLists.txt | 20 +++++++++++---------
109
aws/utils/backtrace/bsd_backtrace.cc | 2 +-
@@ -14,19 +13,25 @@ Subject: [PATCH] Adapt build for Alpine, fix issue with NULL_BACKTRACE support
1413
5 files changed, 15 insertions(+), 16 deletions(-)
1514

1615
diff --git a/CMakeLists.txt b/CMakeLists.txt
17-
index 2dd7084..2ba47e6 100644
16+
index 8803f5c..6152b3d 100644
1817
--- a/CMakeLists.txt
1918
+++ b/CMakeLists.txt
20-
@@ -213,22 +213,24 @@ set(STATIC_LIBS
21-
boost_chrono)
19+
@@ -213,8 +213,10 @@ set(STATIC_LIBS
2220

21+
find_package(Protobuf REQUIRED)
2322
find_package(Threads)
2423
-find_package(ZLIB)
2524
+find_package(ZLIB REQUIRED)
2625
find_package(AWSSDK REQUIRED COMPONENTS kinesis monitoring sts)
2726
+find_package(OpenSSL REQUIRED)
2827
+find_package(CURL REQUIRED)
2928

29+
# Specify the output directory for generated protobuf files
30+
set(PROTO_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/aws/kinesis/protobuf/)
31+
@@ -239,19 +241,19 @@ foreach(proto ${PROTO_FILES})
32+
)
33+
endforeach()
34+
3035
-add_library(LibCrypto STATIC IMPORTED)
3136
-set_property(TARGET LibCrypto PROPERTY IMPORTED_LOCATION ${THIRD_PARTY_LIB_DIR}/libcrypto.a)
3237
+add_library(LibCrypto SHARED IMPORTED)
@@ -123,5 +128,5 @@ index b58ab0e..f483c77 100644
123128
#include <cstring>
124129
#include <cstdint>
125130
--
126-
2.47.1
131+
2.51.0
127132

Collapse file

‎docker/pulsar-all/pom.xml‎

Copy file name to clipboardExpand all lines: docker/pulsar-all/pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<!-- include the docker image only when docker profile is active -->
8383
<properties>
8484
<!-- reference to the image built from docker/kinesis-producer-alpine/Dockerfile -->
85-
<PULSAR_IO_KINESIS_KPL_IMAGE>apachepulsar/pulsar-io-kinesis-sink-kinesis_producer:0.15.12</PULSAR_IO_KINESIS_KPL_IMAGE>
85+
<PULSAR_IO_KINESIS_KPL_IMAGE>apachepulsar/pulsar-io-kinesis-sink-kinesis_producer:1.0.4</PULSAR_IO_KINESIS_KPL_IMAGE>
8686
</properties>
8787
<dependencies>
8888
<dependency>
Collapse file

‎pom.xml‎

Copy file name to clipboardExpand all lines: pom.xml
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ flexible messaging model and an intuitive client API.</description>
227227
<aerospike-client.version>4.5.0</aerospike-client.version>
228228
<kafka-client.version>3.9.1</kafka-client.version>
229229
<rabbitmq-client.version>5.18.0</rabbitmq-client.version>
230-
<aws-sdk.version>1.12.638</aws-sdk.version>
230+
<aws-sdk.version>1.12.788</aws-sdk.version>
231+
<aws-sdk2.version>2.32.28</aws-sdk2.version>
231232
<avro.version>1.12.0</avro.version>
232233
<joda.version>2.10.10</joda.version>
233234
<jclouds.version>2.6.0</jclouds.version>
@@ -1362,6 +1363,14 @@ flexible messaging model and an intuitive client API.</description>
13621363
<scope>import</scope>
13631364
</dependency>
13641365

1366+
<dependency>
1367+
<groupId>software.amazon.awssdk</groupId>
1368+
<artifactId>bom</artifactId>
1369+
<version>${aws-sdk2.version}</version>
1370+
<type>pom</type>
1371+
<scope>import</scope>
1372+
</dependency>
1373+
13651374
<dependency>
13661375
<groupId>org.apache.distributedlog</groupId>
13671376
<artifactId>distributedlog-core</artifactId>
Collapse file

‎pulsar-io/aws/pom.xml‎

Copy file name to clipboardExpand all lines: pulsar-io/aws/pom.xml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
<dependency>
5252
<groupId>software.amazon.awssdk</groupId>
5353
<artifactId>sts</artifactId>
54-
<version>2.10.56</version>
5554
</dependency>
5655
<!-- /aws dependencies -->
5756

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.