Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-29461

Iceberg: HIVE_METASTORE_WAREHOUSE_EXTERNAL is ignored when initializing HiveCatalog

    XMLWordPrintableJSON

Details

    Description

      stacktrace

      (executor-thread-1) Unhandled exception returning INTERNAL_SERVER_ERROR : java.lang.NullPointerException: Warehouse location is not set: hive.metastore.warehouse.external.dir=null
      

      invocation

        private String getExternalWarehouseLocation() {
          String warehouseLocation = conf.get(HiveConf.ConfVars.HIVE_METASTORE_WAREHOUSE_EXTERNAL.varname);
          Preconditions.checkNotNull(warehouseLocation,
              "Warehouse location is not set: hive.metastore.warehouse.external.dir=null");
          return warehouseLocation;
        }
      

      HIVE_METASTORE_WAREHOUSE_EXTERNAL is missing in

       public void initialize(String inputName, Map<String, String> properties) {
          this.catalogProperties = ImmutableMap.copyOf(properties);
      ....
          if (properties.containsKey(CatalogProperties.WAREHOUSE_LOCATION)) {
            this.conf.set(HiveConf.ConfVars.METASTORE_WAREHOUSE.varname,
                LocationUtil.stripTrailingSlash(properties.get(CatalogProperties.WAREHOUSE_LOCATION)));
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dkuzmenko Denys Kuzmenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: