Hi Sofia,

There are some breaking changes between NiFi 1.x and NiFi 2.x. Some code
changes would be required, and the NARs would need to be rebuilt with the
proper NiFi 2 dependencies.

I was going to suggest checking with the Influx team to make the required
changes but it sounds like they're no longer maintaining those components.
This is truly unfortunate.

If you have paid support with Influx, I'd recommend reaching out to them
and see what they say. If you're not, the best course of action is likely
to fork their repo, make the required changes and build the NARs for your
NiFi deployment.

Hope this helps a bit,
Pierre


Le sam. 23 nov. 2024 à 20:12, Sofia Pepa <sofiamarinap...@hotmail.com> a
écrit :

> Hello,
>
> I'm starting a brand new NiFi deployment on version 2.0.0 (not a
> migration), but I would need to have InfluxDB processors (Get, Put, Execute
> Query).
>
> For version 2.0.0 in the "Deprecated Components and Features" refered from
> the Release Notes, for InfluxDB components the alternatives say "InfluxData
> nifi-influxdb-bundle<https://github.com/influxdata/nifi-influxdb-bundle>".
>
>
>   *   I've tried installing "nifi-influx-database-nar-1.31.0-SNAPSHOT.nar"
> but it does not work for any InfluxDB processor.
> The error is:
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.ExecuteInfluxDatabaseQuery]
> java.lang.NoSuchFieldError: Class
> org.apache.nifi.expression.ExpressionLanguageScope does not have member
> field 'org.apache.nifi.expression.ExpressionLanguageScope VARIABLE_REGISTRY'
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.PutInfluxDatabaseRecord_2]
> java.lang.NoSuchMethodError:
> 'org.apache.nifi.components.PropertyDescriptor$Builder
> org.apache.nifi.components.PropertyDescriptor$Builder.allowableValues(org.apache.nifi.components.AllowableValue[])'
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.GetInfluxDatabase_2]
> java.lang.NoClassDefFoundError: Could not initialize class
> org.influxdata.nifi.processors.internal.AbstractInfluxDatabaseProcessor_2
> Caused by: java.lang.ExceptionInInitializerError: Exception
> java.lang.NoSuchMethodError:
> 'org.apache.nifi.components.PropertyDescriptor$Builder
> org.apache.nifi.components.PropertyDescriptor$Builder.allowableValues(org.apache.nifi.components.AllowableValue[])'
> [in thread "NiFi Web Server-65"]
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.GetInfluxDatabaseRecord_2]
> java.lang.NoClassDefFoundError: Could not initialize class
> org.influxdata.nifi.processors.internal.AbstractGetInfluxDatabase_2
> Caused by: java.lang.ExceptionInInitializerError: Exception
> java.lang.NoClassDefFoundError: Could not initialize class
> org.influxdata.nifi.processors.internal.AbstractInfluxDatabaseProcessor_2
> [in thread "NiFi Web Server-65"]
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.PutInfluxDatabaseRecord]
> java.lang.NoClassDefFoundError: Could not initialize class
> org.influxdata.nifi.processors.internal.AbstractInfluxDatabaseProcessor
> Caused by: java.lang.ExceptionInInitializerError: Exception
> java.lang.NoSuchFieldError: Class
> org.apache.nifi.expression.ExpressionLanguageScope does not have member
> field 'org.apache.nifi.expression.ExpressionLanguageScope
> VARIABLE_REGISTRY' [in thread "NiFi Web Server-65"]
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.PutInfluxDatabase_2]
> java.lang.NoClassDefFoundError: Could not initialize class
> org.influxdata.nifi.processors.internal.AbstractInfluxDatabaseProcessor_2
> Caused by: java.lang.ExceptionInInitializerError: Exception
> java.lang.NoSuchMethodError:
> 'org.apache.nifi.components.PropertyDescriptor$Builder
> org.apache.nifi.components.PropertyDescriptor$Builder.allowableValues(org.apache.nifi.components.AllowableValue[])'
> [in thread "NiFi Web Server-65"]
> org.apache.nifi.web.api.dto.DtoFactory Unable to get extension class for
> [org.influxdata.nifi.processors.PutInfluxDatabase]
> java.lang.NoClassDefFoundError: Could not initialize class
> org.influxdata.nifi.processors.internal.AbstractInfluxDatabaseProcessor
> Caused by: java.lang.ExceptionInInitializerError: Exception
> java.lang.NoSuchFieldError: Class
> org.apache.nifi.expression.ExpressionLanguageScope does not have member
> field 'org.apache.nifi.expression.ExpressionLanguageScope
> VARIABLE_REGISTRY' [in thread "NiFi Web Server-65"]
>
>
>   *   I've tried installing instead "nifi-influxdb-nar-2.0.0-M1.nar" but
> it only works for ExecuteInfluxDBQuery processor. No error shows in the
> logs.
>
>
> Please, let me know what to do to solve this problem.
>
> Thank you in advance,
> Sofía
> <mailto:dev@nifi.apache.org>
>

Reply via email to