My project brings in lot of inter-related dependencies. One of it needs httpclient-4.3.3 and apache cassandra-all brings in libthrift 0.9.1 which needs httpclient-4.2.5 version.
I'm trying to run a map reduce job and am seeing a FATAL message in the logs java.lang.NoSuchFieldError: INSTANCE
Any thoughts?
Sorry I'm a new-bie to developing in hadoop/map-reduce/yarn environment. I found the issue. /hadoop/share/common/lib was having httpclient-4.2.5 and httpcore-4.2.5 jars. Replacing them with 4.3.3 jars solved the issue.
Right. DefaultConnectionKeepAliveStrategy
didn't contain the static field
public static final DefaultConnectionKeepAliveStrategy INSTANCE = new DefaultConnectionKeepAliveStrategy();
in version 4.2.5
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.