[
https://issues.apache.org/jira/browse/SENTRY-2283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570744#comment-16570744
]
Na Li commented on SENTRY-2283:
-------------------------------
[~kkalyan][~moist] I saw 3 upstream commits related to this jira:
https://github.com/apache/sentry/commits/master
{code}
061ef73 Revert SENTRY-2283 Multiple versions of metrics on the classpath
causes Sentry to not startup (Kalyan Kumar Kalvagadda reviewed by Sergio Pena,
Lina li and Arjun Mishra)
4a75a39 SENTRY-2283 Multiple versions of metrics on the classpath causes Sentry
to not startup (Kalyan Kumar Kalvagadda reviewed by Sergio Pena, Lina li and
Arjun Mishra)
4d9665f SENTRY-2283 Multiple versions of metrics on the classpath causes Sentry
to not startup (Steve Moist reviewed by Kalyan Kumar Kalvagadda)
{code}
There are some changes in 4d9665f are not reverted. Is this intended result? In
Intellij, it cannot find below in PathDeltaRetriever.java
{code}
import sentry.com.codahale.metrics.Timer.Context;
{code}
> Multiple versions of metrics on the classpath causes Sentry to not startup
> --------------------------------------------------------------------------
>
> Key: SENTRY-2283
> URL: https://issues.apache.org/jira/browse/SENTRY-2283
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Affects Versions: 2.1.0
> Reporter: Steve Moist
> Assignee: Steve Moist
> Priority: Major
> Fix For: 2.1.0
>
> Attachments: SENTRY-2283-001.patch, SENTRY-2283-002.patch,
> SENTRY-2283-003.patch
>
>
> When starting up Sentry in a cluster that has one or more Hadoop products
> installed, if there is a 2.x version of metrics-core.jar or
> metrics-servlet.jar on the classpath, it causes Sentry to fail during startup.
>
> entry-SENTRY_SERVER/sentry-log4j.properties -conffile
> /var/run/cloudera-scm-agent/process/51-sentry-SENTRY_SERVER/sentry-site.xml
> WARNING: log4j.properties is not found. HADOOP_CONF_DIR may be incomplete.
> Exception in thread "main" java.lang.NoSuchMethodError:
> com.codahale.metrics.JmxAttributeGauge.<init>(Ljavax/management/MBeanServerConnection;Ljavax/management/ObjectName;Ljava/lang/String;)V
> at
> com.codahale.metrics.jvm.BufferPoolMetricSet.getMetrics(BufferPoolMetricSet.java:45)
> at
> org.apache.sentry.api.service.thrift.SentryMetrics.registerMetricSet(SentryMetrics.java:273)
> at
> org.apache.sentry.api.service.thrift.SentryMetrics.<init>(SentryMetrics.java:137)
> at
> org.apache.sentry.api.service.thrift.SentryMetrics.getInstance(SentryMetrics.java:149)
> at
> org.apache.sentry.provider.db.service.persistent.TransactionManager.<init>(TransactionManager.java:84)
> at
> org.apache.sentry.provider.db.service.persistent.SentryStore.<init>(SentryStore.java:281)
> at
> org.apache.sentry.service.thrift.SentryService.<init>(SentryService.java:170)
> at
> org.apache.sentry.service.thrift.SentryService$CommandImpl.run(SentryService.java:581)
> at org.apache.sentry.SentryMain.main(SentryMain.java:120)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:313)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:227)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)