Created on 04-07-2017 04:07 AM - edited 08-18-2019 12:25 AM
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,
Please let me know if more information is required.
Any help would be appreciated.
Thanks!
Created 04-07-2017 01:21 PM
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
Created 04-09-2017 12:53 PM
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.
Created on 04-07-2017 01:37 PM - edited 08-18-2019 12:25 AM
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.
Created 04-09-2017 12:55 PM
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.