HBase in CDH 5.4.x has switched to the Apache incubator namespace of the HTrace library. Phoenix driver appears to still use the older one, which may be absent in the pulled dependencies via the "hbase-client" dependency.
Including an explicit entry in your build for org.htrace:htrace-core:jar:3.0.4 should resolve your issue. This should be fixed in a future release of Phoenix labs, when the dependency switches to the newer library. On Sat, Jul 18, 2015 at 4:30 AM Alex Kamil <[email protected]> wrote: > thanks Jean-Marc, but we don't use Cloudera manager > > On Fri, Jul 17, 2015 at 6:56 PM, Jean-Marc Spaggiari < > [email protected]> wrote: > >> Have you looked at those 2 links? >> >> >> - >> >> >> http://blog.cloudera.com/blog/2015/05/apache-phoenix-joins-cloudera-labs/ >> - >> >> http://www.cloudera.com/content/cloudera/en/developers/home/cloudera-labs/apache-phoenix/install-apache-phoenix-cloudera-labs.pdf >> >> Seems more recent that the one you are looking at. I'm suspecting you are >> using an old Phoenix Parcel... >> >> >> JMS >> >> >> 2015-07-17 18:21 GMT-04:00 Alex Kamil <[email protected]>: >> >>> cross-posting here >>> >> >>> ---------- Forwarded message ---------- >>> From: Alex <[email protected]> >>> Date: Fri, Jul 17, 2015 at 5:20 PM >>> Subject: Phoenix exception with CDH 5.4.4 >>> To: [email protected] >>> >>> >>> Getting below exception with phoenix 4.3.0 from cloudera labs >>> <https://repository.cloudera.com/cloudera/cloudera-repos/org/apache/phoenix/phoenix-core/4.3.0-clabs-phoenix-1.0.0/> >>> and cdh5.4.4, >>> (followed the steps in: >>> http://blog.cloudera.com/blog/2013/03/phoenix-in-15-minutes-or-less/ ) >>> >>> Exception in thread "main" java.lang.NoClassDefFoundError: >>> org/apache/htrace/SpanReceiver >>> at >>> org.apache.phoenix.trace.util.Tracing$Frequency.<clinit>(Tracing.java:71) >>> at >>> org.apache.phoenix.query.QueryServicesOptions.<clinit>(QueryServicesOptions.java:154) >>> at >>> org.apache.phoenix.query.QueryServicesImpl.<init>(QueryServicesImpl.java:36) >>> at >>> org.apache.phoenix.jdbc.PhoenixDriver.getQueryServices(PhoenixDriver.java:112) >>> at >>> org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:145) >>> at >>> org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:126) >>> at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:133) >>> >>> any ideas? >>> >>> Thanks >>> Alex >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "CDH Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit >>> https://groups.google.com/a/cloudera.org/d/optout. >>> >>> -- > > --- > You received this message because you are subscribed to the Google Groups > "CDH Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/a/cloudera.org/d/optout. >
