Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-872 Uber jira for HMS HA + Sentry HA redesign
  3. SENTRY-1757

Avoid using local hive meta store with wrong configuration

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Sentry

    Description

      When HMSFollower.getMetaStoreClient() checks if it should create HiveMetaStoreClient, it uses the input configuration from SentryService.

      In real cluster deployment, the configuration does not contain value for "hive.metastore.uris", and therefore, HMSFollower never connects to the real meta store.

      In integration test, the configuration contains value for "hive.metastore.uris". Therefore integration tests pass.

      We need to check Hive configuration to avoid connecting to local meta store. And remove the value for "hive.metastore.uris" in integration test, so its behavior is the same as real cluster deployment.

      TestHDFSIntegrationBase.startSentry() `properties.put("hive.metastore.uris", "thrift://localhost:" + hmsPort);` is introduced in SENTRY-1429, SENTRY-1454, and SENTRY-1456

      Attachments

        Issue Links

          Activity

            People

              linaataustin Na Li
              linaataustin Na Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: