spring boot 开发restful api 并集成phoenix 做hbase查询会遇到
tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.hbase.zookeeper.MetaTableLocator 错误!!
参考链接 https://issues.apache.org/jira/browse/HBASE-14126 是由于guava 版本冲突导致
修改 pom.xml 修改guava 版本为16.0.1 以下
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>16.0.1</version> </dependency>