Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-41

Enable sentry end to end tests to run on a real cluster

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None

    Description

      Adding a DFS implementation, ClusterDFS, which along with UnmanagedHiveServer can be used to run tests on real secure cluster.

      • Adding a maven profile which sets the required classpath and runs only the tests which are supported to run on real secure cluster with an UnmanagedHiveServer.
        • Tests which will be run with "cluster-haoop" profile:
          • TestCrossDbOps
          • TestEndToEnd
          • TestMetadataObjectRetrieval
          • TestMetadataPermissions
          • TestMovingToProduction
          • TestPerDatabasePolicyFile
          • TestPrivilegeAtTransform
          • TestPrivilegesAtDatabaseScope
          • TestPrivilegesAtTableScope
          • TestSandboxOps
          • TestExportImportPrivileges
          • TestUriPermissions
          • TestRuntimeMetadataRetrieval
        • Tests which will not be run:
          • TestUserManagement (had non static user:group mapping)
          • TestServerConfiguration (uses a managed hive server)
          • TestSentryOnFailureHookLoading (uses a managed hive server)
          • TestPrivilegesAtFunctionScope (has not been added as it results in a failure due to SENTRY-23)
          • TestPerDBConfiguration (has not been added as it uses a special java property)

      Running the tests:
      Prerequisites:

      • Need to setup a secure cluster with sentry enabled
      • Need to have the static user:group mapping setup
      • Need to set HIVE_CONF_DIR and HADOOP_CONF_DIR
        mvn clean package -Pcluster-hadoop -Dsentry.e2etest.policyOwnerKeytab=</path/to/keytab> -Dsentry.e2etest.policyOwnerPrincipal=<principal> -Dhive.server2.thrift.bind.host=<hs2Host> -Dhive.server2.authentication.kerberos.principal=<hivePrincipal>

      Attachments

        1. SENTRY-41.1.patch
          35 kB
          Sravya Tirukkovalur
        2. SENTRY-41.2.patch
          37 kB
          Sravya Tirukkovalur
        3. SENTRY-41.3.patch
          42 kB
          Sravya Tirukkovalur

        Issue Links

          Activity

            People

              sravya Sravya Tirukkovalur
              sravya Sravya Tirukkovalur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: