spark-phoenix-hive-hbase -netty包冲突

authentication disabled; ui acls disabled; users with view permissions: Set(yanfabu); groups with view permissions: Set(); users with modify permissions: Set(yanfabu); groups with modify permissions: Set()
Exception in thread "main" java.lang.NoSuchMethodError: io.netty.buffer.PooledByteBufAllocator.metric()Lio/netty/buffer/PooledByteBufAllocatorMetric;

以上由于Jar包冲突所致

maven包如下:

解决办法如下:

有四种方法进行参考,请自行查阅;

可直接强制引用某一个jar包:

原文地址:https://www.cnblogs.com/wind-man/p/10979253.html