Support Questions

Find answers, ask questions, and share your expertise

PutHiveQL Exception due to missing class file.

Hi Team,

I am using PutHiveQL to add a partition to the Hive Metastore. However the processor throws java.lang.NoClassDefFoundError:org/apache/http/config/Lookup exception as shown below,

14460-puthiveql-exception.png

Please let me know if more information is required.

Any help would be appreciated.

Thanks!

4 REPLIES 4

Master Guru

@Rohit Ravishankar

The question that needs to be answered is where is "org/apache/http/config/lookup" coming from that the putHiveQL processor thinks that is a java class. The PutHiveQL processor has a dependency on HiveConnectionPool controller service. That Controller service then takes the hive-site.xml, hdfs-site.xml, and or hdfs-site.xml files as configuration resource inputs.

Do you find the "org/apache/http/config/lookup" anywhere in any of these processor configs, controller configs, or xxx-site.xml files?

What version of NiFi are you running?

Thanks,

Matt

@Matt Clarke

We are using NiFi 1.1.0. Actually we have NiFi installed in 2 environments, one in Dev & the other in SIT. The configurations/settings in Dev & SIT are the same. The NiFi installed in SIT is working fine, however the one installed in Dev was also working absolutely fine, however it suddenly started throwing this exception couple of days back.

@Rohit Ravishankar

Look in the HiveConnectionPool controller service, at the files listed in the property Hive Configuration resources, that path might be in one of those files. Try and simply remove it from the file and see if that clears up the issue.

14463-screen-shot-2017-04-07-at-92851-am.png

@Wynner

I have only the hive-site.xml file mentioned in the 'Hive Configurations Resources' setting. I will check the contents of this file & let you know.