解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled

解决胖客户端中的异常:`Inconsistent namespace mapping properties. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled

在使用phoenix的胖客户端的时候,经常会遇到下面这样的异常。那么如何让解决呢?
解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled
方式一:
把hbase中的hbase-site.xml复制粘贴到idra当前项目的resource目录下,并重新运行程序。(前提hbase-site.xml文件中配置过相应的配置)
解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled
如果导入后还是会报之前的异常,那么可以自己手动的将这个文件复制粘贴到target目录下,运行项目即可。
解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled
运行成功
解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled
方式二:
可在代码中创建一个Properties对象,将需要的配置信息放入到这个对象中,并将其当作getConnection的参数传入并运行程序。
解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled
运行成功
解决phoenix胖客户端中的异常:client does not have phoenix.schema.isNamespaceMappingEnabled