nipyapi icon indicating copy to clipboard operation
nipyapi copied to clipboard

Unable to create DBCP controller Database Driver Location(s) property

Open narasimhatejav opened this issue 4 years ago • 1 comments

  • Nipyapi version: 0.16.2
  • NiFi version: 0.13.2
  • Python version: 3.8.3
  • Operating System: Windows

Description

I am trying create org.apache.nifi.dbcp.DBCPConnectionPool through nipyapi but when i am updating the properties of connection pool only one property is not getting updated. Instead of updating it with the value it is creating duplicate property

What I Did

These are the configuration properties :

'dbcp_properties = {"Database Connection URL":"jdbc:mysql://localhost:3306/world","Database Driver Class Name":"com.mysql.jdbc.Driver", "Database Driver Location(s)":"C://nifi_test//mysql-connector-java-8.0.26//mysql-connector-java-8.0.26.jar", "Database User":"root","Password":"root"}'

Issue in creating properties:

image

Instead of updating the value in Database Driver Location(s) it is creating a duplicate property with the same name

image

The issue is only with this property rest everything is working fine.

can you please let us know is there is different way to update the value?

Urgency

It is blocking the flow.

narasimhatejav avatar Aug 24 '21 10:08 narasimhatejav

I think I can see how this would be an issue, can you please share the sample code you have for fetching the ProcessorType and properties, updating them, then submitting the Update?

Chaffelson avatar Aug 24 '21 19:08 Chaffelson

@narasimhatejav The problem here is when the display name differs from the actual name of the property. Latest NiFi version has the right name to be used in documentation of all components. e.g. a new column has beed added in the documentation called "API Name", use this to configure the processor. Example for ConsumeKafka_2_6 processor: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-kafka-2-6-nar/1.19.1/org.apache.nifi.processors.kafka.pubsub.ConsumeKafka_2_6/index.html Thanks @Chaffelson for this great work!!

Kapkiai avatar Dec 13 '22 07:12 Kapkiai