phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Desmond <ry...@concurrentinc.com>
Subject DefaultMetricsSystem error
Date Fri, 06 Mar 2015 23:20:11 GMT
Hello,

I have Phoenix 4.3.0 running on my local machine. I am using Hadoop 2.4.1
in psuedo-distributed mode and HBase 0.98.10.1-hadoop2.

I am able to connect to HBase with Phoenix using sqlline.py.

I am building a Java application to demonstrate a Cascading application
that uses Phoenix on HBase. I am using Gradle and I have the following
(relevant) dependencies:

    compile( group: 'org.apache.phoenix', name: 'phoenix', version:
phoenixVersion )
    compile( group: 'org.apache.phoenix', name: 'phoenix-core', version:
phoenixVersion )
    compile( group: 'commons-configuration', name: 'commons-configuration',
version: commonsConfigVersion )

When I try to build the application I continue to get this error. Any tips?

java.lang.NoSuchMethodError:
org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.instance()Lorg/apache/hadoop/metrics2/MetricsSystem;
	at org.apache.phoenix.metrics.Metrics.<clinit>(Metrics.java:29)
	at org.apache.phoenix.trace.TraceMetricSource.<init>(TraceMetricSource.java:86)
	at org.apache.phoenix.trace.util.Tracing.addTraceMetricsSource(Tracing.java:252)
	at org.apache.phoenix.jdbc.PhoenixConnection.<clinit>(PhoenixConnection.java:140)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl$11.call(ConnectionQueryServicesImpl.java:1838)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl$11.call(ConnectionQueryServicesImpl.java:1810)
	at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:77)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:1810)
	at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:162)
	at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:126)
	at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:133)
	at java.sql.DriverManager.getConnection(DriverManager.java:571)
	at java.sql.DriverManager.getConnection(DriverManager.java:233)
	at cascading.jdbc.JDBCTap.createConnection(JDBCTap.java:448)
	at cascading.jdbc.JDBCTap.resourceExists(JDBCTap.java:663)
	at cascading.jdbc.JDBCTap.deleteResource(JDBCTap.java:628)
	at cascading.jdbc.JDBCTap.sinkConfInit(JDBCTap.java:418)
	at cascading.jdbc.JDBCTap.sinkConfInit(JDBCTap.java:83)
	at cascading.flow.hadoop.HadoopFlowStep.initFromSink(HadoopFlowStep.java:453)
	at cascading.flow.hadoop.HadoopFlowStep.getInitializedConfig(HadoopFlowStep.java:105)
	at cascading.flow.hadoop.HadoopFlowStep.createFlowStepJob(HadoopFlowStep.java:208)
	at cascading.flow.hadoop.HadoopFlowStep.createFlowStepJob(HadoopFlowStep.java:73)
	at cascading.flow.planner.BaseFlowStep.getFlowStepJob(BaseFlowStep.java:768)
	at cascading.flow.BaseFlow.initializeNewJobsMap(BaseFlow.java:1253)
	at cascading.flow.BaseFlow.initialize(BaseFlow.java:214)
	at cascading.flow.hadoop.planner.HadoopPlanner.buildFlow(HadoopPlanner.java:287)
	at cascading.flow.hadoop.planner.HadoopPlanner.buildFlow(HadoopPlanner.java:80)
	at cascading.flow.FlowConnector.connect(FlowConnector.java:459)
	at cascading.flow.FlowConnector.connect(FlowConnector.java:450)
	at cascading.flow.FlowConnector.connect(FlowConnector.java:426)
	at cascading.flow.FlowConnector.connect(FlowConnector.java:275)
	at cascading.flow.FlowConnector.connect(FlowConnector.java:220)
	at cascading.flow.FlowConnector.connect(FlowConnector.java:202)
	at cascading.jdbc.JDBCTestingBase.testJDBC(JDBCTestingBase.java:97)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355)
	at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)



Thanks!

-- 
Ryan Desmond
Solutions Architect
Concurrent Inc.
www.linkedin.com/in/ryanadesmond

Mime
View raw message