Skip to content

Commit f8cf694

Browse files
lfranckesbernauer
andauthored
fix: Update nipyapi to 0.22.0 to work with custom nifi versions (#1205)
* fix: Update nipyapi to 0.22.0 to work with custom nifi versions * Update testing-tools/python/requirements.txt Co-authored-by: Sebastian Bernauer <[email protected]> --------- Co-authored-by: Sebastian Bernauer <[email protected]>
1 parent 81b1396 commit f8cf694

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

nifi/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/bin /stackable/bin
204204
COPY --chown=${STACKABLE_USER_UID}:0 nifi/licenses /licenses
205205
COPY --chown=${STACKABLE_USER_UID}:0 nifi/python /stackable/python
206206

207+
# The nipyapi is required until NiFi 2.0.x for the ReportingTaskJob
208+
# This can be removed once the 1.x.x line is removed
209+
# Note: Keep this in sync with the version installed in testing-tools! (See the requirements.txt file)
210+
# Find the latest version here: https://pypi.org/project/nipyapi/
211+
# renovate: datasource=pypi packageName=nipyapi
212+
ENV NIPYAPI_VERSION=0.22.0
213+
207214
RUN <<EOF
208215
microdnf update
209216

@@ -217,10 +224,8 @@ microdnf install \
217224
microdnf clean all
218225
rm -rf /var/cache/yum
219226

220-
# The nipyapi is required until NiFi 2.0.x for the ReportingTaskJob
221-
# This can be removed once the 1.x.x line is removed
222227
pip install --no-cache-dir \
223-
nipyapi==0.19.1
228+
nipyapi==${NIPYAPI_VERSION}
224229

225230
# For backwards compatibility we create a softlink in /bin where the jar used to be as long as we are root
226231
# This can be removed once older versions / operators using this are no longer supported

testing-tools/python/requirements.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ requests==2.32.3
44
charset-normalizer==3.3.2 #
55
hive-metastore-client==1.0.9
66
kafka-python3==3.0.0
7-
nipyapi==0.20.0
7+
8+
# Used in the NiFi integration tests
9+
# Should match the version in nifi/Dockerfile
10+
nipyapi==0.22.0
11+
812
pandas==2.2.3
913
trino==0.329.0
14+
1015
# gssapi/kerberos/pure-sasl are needed for using the python metastore client with kerberos.
1116
gssapi==1.8.3
1217
kerberos==1.3.1
1318
pure-sasl==0.6.2
19+
1420
pytest==8.3.3 # Needed to execute Python unit-tests
1521
#thrift==0.13.0 # Installed as deb package because it fails to build from source with pip. Needs to match the version from hive-metastore-client

0 commit comments

Comments
 (0)