You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/13 16:05:01 UTC

[jira] [Commented] (IMPALA-7423) NoSuchMethodError when starting Sentry in the minicluster

    [ https://issues.apache.org/jira/browse/IMPALA-7423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16578523#comment-16578523 ] 

ASF subversion and git services commented on IMPALA-7423:
---------------------------------------------------------

Commit 83fc1fbb6749b5d09089879e5f5e4c618dd91373 in impala's branch refs/heads/master from [~fredyw]
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=83fc1fb ]

IMPALA-7423: NoSuchMethodError when starting Sentry

The issue that is caused by the classpath ordering because of two
conflicting sentry-provider JARs:
- sentry-provider-db-2.0.0-cdh6.x-SNAPSHOT.jar
- sentry-provider-db-2.0.0-cdh6.x-SNAPSHOT-sh.jar (uses shaded Sentry
  Thrift)
This patch fixes the issue by removing sentry-provider-db:2.0.0:sh from
FE dependencies.

Testing:
- Ran a clean build and was able to start Sentry

Change-Id: Ie6cdfd184e06009a8d582499b2f6fd3011de6d5a
Reviewed-on: http://gerrit.cloudera.org:8080/11187
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> NoSuchMethodError when starting Sentry in the minicluster
> ---------------------------------------------------------
>
>                 Key: IMPALA-7423
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7423
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 3.0
>            Reporter: Fredy Wijaya
>            Assignee: Fredy Wijaya
>            Priority: Major
>              Labels: flaky-build
>
> {noformat}
> ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging.
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.sentry.api.service.thrift.SentryPolicyServiceClientDefaultImpl.<init>(Lorg/apache/hadoop/conf/Configuration;Lsentry/org/apache/sentry/core/common/transport/SentryTransportPool;)V
> at org.apache.sentry.service.thrift.SentryServiceClientFactory.create(SentryServiceClientFactory.java:90)
> at org.apache.sentry.service.thrift.SentryServiceClientFactory.create(SentryServiceClientFactory.java:68)
> at org.apache.impala.util.SentryPolicyService$SentryServiceClient.createClient(SentryPolicyService.java:91)
> at org.apache.impala.util.SentryPolicyService$SentryServiceClient.<init>(SentryPolicyService.java:64)
> at org.apache.impala.util.SentryPolicyService.listAllRoles(SentryPolicyService.java:395)
> at org.apache.impala.testutil.SentryServicePinger.main(SentryServicePinger.java:81)
> Error in /home/impdev/Impala/testdata/bin/run-sentry-service.sh at line 39: "$JAVA" -cp $CLASSPATH org.apache.impala.testutil.SentryServicePinger \
> Error in /home/impdev/Impala/testdata/bin/run-all.sh at line 61: tee ${IMPALA_CLUSTER_LOGS_DIR}/run-sentry-service.log
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org