Never mind. http://phoenix.apache.org/server.html helps.
On Fri, Apr 20, 2018 at 9:13 PM, Lian Jiang <[email protected]> wrote: > Hi, > > I am using HDP 2.6 hbase and pheonix. I created a play rest service using > hbase as the backend. However, I have trouble to get a working pheonix > client. > > I tried the pheonix-client.jar given by HDP but it has multiple conflicts > with play, for example logback v.s. log4j, guava 13 v.s. guava 22, etc. > > The logging exception is: > > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in [jar:file:/Users/lianjia/repo/ > hbaseWS/lib/phoenix-client.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in [jar:file:/Users/lianjia/.ivy2 > /cache/ch.qos.logback/logback-classic/jars/logback-classic-1 > .2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > > java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be > cast to ch.qos.logback.classic.LoggerContext > at play.api.libs.logback.LogbackLoggerConfigurator.configure(Lo > gbackLoggerConfigurator.scala:84) > at play.api.libs.logback.LogbackLoggerConfigurator.configure(Lo > gbackLoggerConfigurator.scala:66) > at play.api.inject.guice.GuiceApplicationBuilder.$anonfun$confi > gureLoggerFactory$1(GuiceApplicationBuilder.scala:122) > at scala.Option.map(Option.scala:146) > at play.api.inject.guice.GuiceApplicationBuilder.configureLogge > rFactory(GuiceApplicationBuilder.scala:121) > at play.api.inject.guice.GuiceApplicationBuilder.applicationMod > ule(GuiceApplicationBuilder.scala:100) > at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBui > lder.scala:185) > at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApp > licationBuilder.scala:137) > at play.api.inject.guice.GuiceApplicationLoader.load(GuiceAppli > cationLoader.scala:21) > at play.core.server.ProdServerStart$.start(ProdServerStart.scala:51) > at play.core.server.ProdServerStart$.main(ProdServerStart.scala:25) > at play.core.server.ProdServerStart.main(ProdServerStart.scala) > > > > Then I tried: > > libraryDependencies += "org.apache.phoenix" % "phoenix-core" % > "4.13.1-HBase-1.1" > > libraryDependencies += "org.apache.phoenix" % "phoenix-server-client" % > "4.7.0-HBase-1.1" > > libraryDependencies += "org.apache.phoenix" % "phoenix-queryserver-client" > % "4.13.1-HBase-1.1" > > None of them worked: "No suitable driver found". > > Any idea will be highly appreciated! >
