Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9322

authorization.test_grant_revoke.TestGrantRevoke.test_grant_revoke failed with "Unable to start Sentry"

    XMLWordPrintableJSON

Details

    • ghx-label-1

    Description

      In last few builds of impala-cdpd-master-exhuastive tests, authorization test failed with error "Unable to start Sentry"

      Error Messagetest setup failureStacktraceauthorization/test_grant_revoke.py:51: in setup_method
          super(TestGrantRevoke, self).setup_method(method)
      common/custom_cluster_test_suite.py:164: in setup_method
          method.func_dict.get(SENTRY_LOG_DIR))
      common/custom_cluster_test_suite.py:231: in _start_sentry_service
          raise RuntimeError("Unable to start Sentry")
      E   RuntimeError: Unable to start SentryStandard OutputStopping Sentry
      ERROR in /data/jenkins/workspace/impala-cdpd-master-exhaustive/repos/Impala/testdata/bin/run-sentry-service.sh at line 54: "$JAVA" -cp $CLASSPATH org.apache.impala.testutil.SentryServicePinger \
      Generated: /data/jenkins/workspace/impala-cdpd-master-exhaustive/repos/Impala/logs/extra_junit_xml_logs/generate_junitxml.buildall.run-sentry-service.20200122_02_11_24.xml
      
      org.apache.impala.common.InternalException: Error making 'listRoles' RPC to Sentry Service: 
      	at org.apache.impala.authorization.sentry.SentryPolicyService.listAllRoles(SentryPolicyService.java:422)
      	at org.apache.impala.testutil.SentryServicePinger.main(SentryServicePinger.java:83)
      Caused by: org.apache.sentry.core.common.exception.SentryUserException: java.net.ConnectException: Connection refused (Connection refused)
      	at org.apache.sentry.core.common.transport.RetryClientInvocationHandler.connect(RetryClientInvocationHandler.java:166)
      	at org.apache.sentry.core.common.transport.RetryClientInvocationHandler.invokeImpl(RetryClientInvocationHandler.java:90)
      	at org.apache.sentry.core.common.transport.SentryClientInvocationHandler.invoke(SentryClientInvocationHandler.java:41)
      	at com.sun.proxy.$Proxy5.listAllRoles(Unknown Source)
      	at org.apache.impala.authorization.sentry.SentryPolicyService.listAllRoles(SentryPolicyService.java:416)
      	... 1 more
      Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)
      	at org.apache.thrift.transport.TSocket.open(TSocket.java:226)
      	at org.apache.sentry.core.common.transport.SentryTransportFactory.connectToServer(SentryTransportFactory.java:99)
      	at org.apache.sentry.core.common.transport.SentryTransportFactory.getTransport(SentryTransportFactory.java:86)
      	at org.apache.sentry.core.common.transport.SentryTransportPool$PoolFactory.create(SentryTransportPool.java:302)
      	at org.apache.sentry.core.common.transport.SentryTransportPool$PoolFactory.create(SentryTransportPool.java:271)
      	at org.apache.commons.pool2.BaseKeyedPooledObjectFactory.makeObject(BaseKeyedPooledObjectFactory.java:62)
      	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.create(GenericKeyedObjectPool.java:1041)
      	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:380)
      	at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:279)
      	at org.apache.sentry.core.common.transport.SentryTransportPool.getTransport(SentryTransportPool.java:183)
      	at org.apache.sentry.api.service.thrift.SentryPolicyServiceClientDefaultImpl.connect(SentryPolicyServiceClientDefaultImpl.java:100)
      	at org.apache.sentry.core.common.transport.RetryClientInvocationHandler.connect(RetryClientInvocationHandler.java:141)
      	... 5 more
      Caused by: java.net.ConnectException: Connection refused (Connection refused)
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at org.apache.thrift.transport.TSocket.open(TSocket.java:221)
      	... 16 more
      

      Attachments

        Activity

          People

            Xiaomeng Zhang Xiaomeng Zhang
            Xiaomeng Zhang Xiaomeng Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: