Updated on 2024-11-29 GMT+08:00

How Do Applications Access HBase and Solr at the Same Time?

Question

How do applications access HBase and Solr at the same time?

Answer

If an application needs to access HBase and Solr at the same time (for example, a custom MapReduce task), an exception occurs when the application accesses Solr because solrj 5.3.1 in the dependency package of HBase conflicts with solrj 8.11.2 in the dependency package of Solr. To solve the problem, delete solr-solrj-5.3.1.jar on which HBase depends and use solr-solrj-8.11.2-*.jar of Solr only.