You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Turcsanyi (Jira)" <ji...@apache.org> on 2020/02/17 17:47:00 UTC

[jira] [Commented] (NIFI-7143) Upgrade GCP dependency

    [ https://issues.apache.org/jira/browse/NIFI-7143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17038533#comment-17038533 ] 

Peter Turcsanyi commented on NIFI-7143:
---------------------------------------

Upgrading {{google-cloud-bom}} to 0.120.2-alpha which brings in {{grpc}} 1.25.0 so it has the proxy issue fixed.

The latest (on 02/17/2020) 0.122.2-alpha version ends in build error in NiFi:
{code:java}
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO] Failure detected.
[ERROR] Exception calling reference $projectsSortedByOrganization at META-INF/DEPENDENCIES.vm[line 34, column 33]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] nifi-gcp-bundle 1.12.0-SNAPSHOT .................... SUCCESS [  1.543 s]
[INFO] nifi-gcp-services-api .............................. SUCCESS [  1.772 s]
[INFO] nifi-gcp-services-api-nar .......................... SUCCESS [  1.680 s]
[INFO] nifi-gcp-processors ................................ FAILURE [  1.550 s]
[INFO] nifi-gcp-nar 1.12.0-SNAPSHOT ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.279 s
[INFO] Finished at: 2020-02-17T18:06:04+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.6.0:process (process-resource-bundles) on project nifi-gcp-processors: Execution process-resource-bundles of goal org.apache.maven.plugins:maven-remote-resources-plugin:1.6.0:process failed: Failed to resolve dependencies for one or more projects in the reactor. Reason: The artifact has no valid ranges
[ERROR]   io.grpc:grpc-api:jar:1.27.0
[ERROR] 
[ERROR] Path to dependency: 
[ERROR]         1) org.apache.nifi:nifi-gcp-processors:jar:1.12.0-SNAPSHOT
[ERROR]         2) com.google.cloud:google-cloud-pubsub:jar:1.102.1
{code}
It is due to the multiple versions of {{io.grpc:grpc-api}} in transitive dependencies (coming from google-cloud-pubsub) and the enforced 1.27.0 version:
{code:java}
+- com.google.cloud:google-cloud-pubsub:jar:1.102.1:compile
|  +- io.grpc:grpc-api:jar:1.26.0:compile (omitted for conflict with 1.27.0)
|
|  +- com.google.api:gax-grpc:jar:1.53.1:compile
|  |  +- io.grpc:grpc-auth:jar:1.27.0:compile
|  |  |  \- io.grpc:grpc-api:jar:1.27.0:compile (version selected from constraint [1.27.0,1.27.0])
{code}
It seems {{maven-remote-resources-plugin / apache-jar-resource-bundle}} cannot handle the enforced version.

> Upgrade GCP dependency
> ----------------------
>
>                 Key: NIFI-7143
>                 URL: https://issues.apache.org/jira/browse/NIFI-7143
>             Project: Apache NiFi
>          Issue Type: Task
>    Affects Versions: 1.10.0, 1.11.0, 1.11.1
>            Reporter: Peter Turcsanyi
>            Assignee: Peter Turcsanyi
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> PubSub via proxy does not work due to a bug in the grpc lib mentioned [here|https://github.com/googleapis/google-cloud-java/issues/6304#issuecomment-562700327]. It affects grpc versions 1.22.0 and 1.23.0.
> Upgrade the GCP dependency to a newer version that uses 1.24.0+ grpc for PubSub.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)