Skip to content

Commit a3ce8ce

Browse files
author
Dmitriy Fingerman
committed
code review comments - Feb 13.
1 parent d00bf81 commit a3ce8ce

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private Catalog createCatalog() {
8787
if (configExtWarehouse != null) {
8888
properties.put("external-warehouse", configExtWarehouse);
8989
// HiveCatalog reads this property directly from Configuration, not from properties map
90-
configuration.set("hive.metastore.warehouse.external.dir", configExtWarehouse);
90+
configuration.set(MetastoreConf.ConfVars.WAREHOUSE_EXTERNAL.getHiveName(), configExtWarehouse);
9191
}
9292
if (configuration.get(SERVLET_ID_KEY) != null) {
9393
// For the testing purpose. HiveCatalog caches a metastore client in a static field. As our tests can spin up

standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/standalone/StandaloneRESTCatalogServer.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
99
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
10+
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
1817
*/
1918
package org.apache.iceberg.rest.standalone;
2019

@@ -138,7 +137,6 @@ public int getPort() {
138137
return port;
139138
}
140139

141-
142140
/**
143141
* Gets the REST Catalog endpoint URL.
144142
* @return the endpoint URL

0 commit comments

Comments
 (0)