Read data from Hbase when creating a connection

The data captured by the recent project is stored in Hbase, so it is necessary to read data from Hbase. When creating a connection, it is found that the following exception is always reported:


This exception does not affect the acquisition of data results, but each time the total report This abnormality makes people feel very uncomfortable. Later, after investigation, Sanxian found that it was a problem of xml parsing jar package conflict. There are two main reasons:

1. The jar package version used by the system is caused by conflict, such as There are two different versions but the same package
2. The version of the jar package used by the system is too low (compared to other packages)

The exception in the screenshot above is caused by the low version of the jar package xercesImpl.jar used for xml parsing Come, because a new other package is introduced, and this package uses a higher version of xercesImpl.jar, so when the lower version of xercesImpl.jar is still used, an error is reported, just like the error described above.

Solution:
Find the jar package that maven depends on, and delete the conflicting package of xercesImpl.jar inside.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326865748&siteId=291194637
Recommended