在 HBase 0.20.x 编程中,执行 new HBaseConfiguration() 是抛出XML分析异常

原因是有多个XML分析器,需要通过JVM指定一个属性来解决问题。

-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.\
internal.jaxp.DocumentBuilderFactoryImpl

使 用上面指定的分析器就不再抛出异常

This entry was posted in HBase. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>