Support Questions

Find answers, ask questions, and share your expertise

Nifi throw error: java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.reloadExistingConfigurations()V

New Contributor

@Bryan Bende

Hi Bryan,

I am following this link to set up Nifi putHDFS to write to Azure Data Lake.Connecting to Azure Data Lake from a NiFi dataflow

The Nifi is within HDF 3.1 VM and the Nifi version is 1.5.

We got the jar files mentioned in the above link, from a HD Insight(v 3.6, which supports hadoop 2.7) head node, these jars are:







And they are copied to the folder /usr/lib/hdinsight-datalake of the Nifi host. And the putHDFS config(picture) is as attached(exactly as the link above).

But in the nifi log we are getting this:

Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.reloadExistingConfigurations()V at org.apache.hadoop.fs.adl.AdlConfKeys.addDeprecatedKeys( at org.apache.hadoop.fs.adl.AdlFileSystem.<clinit>( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at org.apache.nifi.processors.hadoop.AbstractHadoopProcessor$ExtendedConfiguration.getClassByNameOrNull( at org.apache.hadoop.conf.Configuration.getClassByName( at org.apache.hadoop.conf.Configuration.getClass( at org.apache.hadoop.fs.FileSystem.getFileSystemClass( at org.apache.hadoop.fs.FileSystem.createFileSystem( at org.apache.hadoop.fs.FileSystem.get( at org.apache.hadoop.fs.FileSystem.get( at org.apache.nifi.processors.hadoop.AbstractHadoopProcessor$ at org.apache.nifi.processors.hadoop.AbstractHadoopProcessor$ at Method) at at at org.apache.nifi.processors.hadoop.AbstractHadoopProcessor.getFileSystemAsUser( at org.apache.nifi.processors.hadoop.AbstractHadoopProcessor.resetHDFSResources( at org.apache.nifi.processors.hadoop.AbstractHadoopProcessor.abstractOnScheduled( ... 16 common frames omitted

The AdlConfKeys class is from the hadoop-azure-datalake.jar file above. From the above exception, it seems to me this AdlConfKeys is loading an older version of the org.apache.hadoop.conf.Configuration class, which does not have the reloadExistingConfigurations method. However we cannot find out from where this older class gets loaded. This HDF 3.1 has the hadoop-common-XXXX.jar in multiple locations, all those on version 2.7 something has the org.apache.hadoop.conf.Configuration containing the method reloadExistingConfigurations, only those on version 2.3 don't have this method.(I decompiled both 2.7 and 2.3 jars to find out)

[root@NifiHost /]# find . -name *hadoop-common*

(the output is a lot more than below, however I removed some display purpose, most of them are on 2.7, only 2 of them are on version 2.3):












So I really don't know how Nifi managed to find a hadoop-common jar file or something else containing the Configuration class does not have the method reloadExistingConfigurations(). (Probably the Nifi get the older version of the class from its parent classloader) . We do not have any customized Nar files deployed to Nifi either, everything is pretty much default from whatever HDF 3.1 has on Nifi. The link above works for HDF 2.1, so not sure if this is a bug introduced from a version later than that.

Please advise. I've been spending a whole day on this but can't fix the issue. Appreciate your help.



New Contributor

Thank you very much Bryan I'll follow that stackoverflow and further updates there.