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

# RETRY FILE

## 功能

重新尝试导入指定 Pipe 中所有数据文件或某个数据文件。该命令自 3.2 版本起支持。

## 语法

```SQL theme={null}
ALTER PIPE <pipe_name> { RETRY ALL | RETRY FILE '<file_name>' }
```

## 参数说明

### pipe\_name

Pipe 的名称。

### file\_name

要重试的数据文件的存储路径。注意这里需要指定完整的路径。如果指定的文件不属于当前指定的 Pipe，则返回报错。

## 示例

重试导入名为 `user_behavior_replica` 的 Pipe 中所有数据文件：

```SQL theme={null}
ALTER PIPE user_behavior_replica RETRY ALL;
```

重试导入名为 `user_behavior_replica` 的 Pipe 中的数据文件 `s3://starrocks-examples/user_behavior_ten_million_rows.parquet`：

```SQL theme={null}
ALTER PIPE user_behavior_replica RETRY FILE 's3://starrocks-examples/user_behavior_ten_million_rows.parquet';
```

## 相关文档

* [CREATE PIPE](/documents/cn/4.2/sql-reference/sql-statements/loading_unloading/pipe/CREATE_PIPE.md)
* [ALTER PIPE](/documents/cn/4.2/sql-reference/sql-statements/loading_unloading/pipe/ALTER_PIPE.md)
* [DROP PIPE](/documents/cn/4.2/sql-reference/sql-statements/loading_unloading/pipe/DROP_PIPE.md)
* [SHOW PIPES](/documents/cn/4.2/sql-reference/sql-statements/loading_unloading/pipe/SHOW_PIPES.md)
* [SUSPEND or RESUME PIPE](/documents/cn/4.2/sql-reference/sql-statements/loading_unloading/pipe/SUSPEND_or_RESUME_PIPE.md)


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