> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ALTER RESOURCE

> Use the ALTER RESOURCE statement to modify the properties of a resource.

Use the ALTER RESOURCE statement to modify the properties of a resource.

## Syntax

```SQL theme={null}
ALTER RESOURCE 'resource_name' SET PROPERTIES ("key"="value", ...)
```

## Parameters

* `resource_name`: the name of the resource to be modified.

* `PROPERTIES ("key"="value", ...)`: the properties of the resource. You can modify different properties based on resource types. Currently, the database supports modifying the URI of the Hive metastore of the following resources.
  * Apache Iceberg resources support modifying the following properties:
    * `iceberg.catalog-impl`: the fully qualified class name of [custom catalog](/documents/4.2/data_source/External_table.md).
    * `iceberg.catalog.hive.metastore.uris`: the URI of the Hive metastore.
  * Apache Hive™ resources and Apache Hudi resources support modifying `hive.metastore.uris`, which indicates the URI of the Hive metastore.

## Usage notes

After you reference a resource to create an external table, if you modify the URI of the Hive metastore of this resource, the external table becomes unavailable. If you still want to use the external table to query data, make sure that the new metastore contains a table whose name and schema are the same as that in the original metastore.

## Examples

Modify the URI of the Hive metastore of Hive resource `hive0`.

```SQL theme={null}
ALTER RESOURCE 'hive0' SET PROPERTIES ("hive.metastore.uris" = "thrift://xx.xx.xx.xx:9083")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.