---
title: 使用mxIndex特征聚类，执行聚类/结果合并的过程，google protobuf出现报错-昇腾社区
description: 执行聚类/结果合并的过程，尝试将结果通过调用SaveDataToFile接口将结果通过google protobuf序列化保存到本地，google protobuf出现了“exceeded maximum protobuf size of 2gb”的报错，且本地保存结果的size为0。
keywords: mxIndex,聚类,protobuf,报错,SaveDataToFile
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000001275111484
section: (其他)
---

# 使用mxIndex特征聚类，执行聚类/结果合并的过程，google protobuf出现报错-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000001275111484
描述: 执行聚类/结果合并的过程，尝试将结果通过调用SaveDataToFile接口将结果通过google protobuf序列化保存到本地，google protobuf出现了“exceeded maximum protobuf size of 2gb”的报错，且本地保存结果的size为0。
关键词: mxIndex,聚类,protobuf,报错,SaveDataToFile

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

使用mxIndex特征聚类，执行聚类/结果合并的过程，google protobuf出现报错

使用mxIndex特征聚类，执行聚类/结果合并的过程，google protobuf出现报错

2022/10/19

726

问题信息

| 问题来源 | 产品大类 | 关键字 |
| --- | --- | ---|
| 官方 | 模型训练 | mxIndex、聚类、protobuf、报错、SaveDataToFile |

#### 问题现象描述

执行聚类/结果合并的过程，尝试将结果通过调用SaveDataToFile接口将结果通过google protobuf序列化保存到本地，google protobuf出现了“exceeded maximum protobuf size of 2gb”的报错，且本地保存结果的size为0。

#### 原因分析

当前聚类使用第三方google protobuf执行序列化，google protobuf中对于序列化对象要求其大小小于等于2GB。

#### 解决措施

对于聚类结果较大的场景，请使用API调用的方法，即SaveData()接口，从内存中直接取回聚类结果。

本页内容

- 问题信息
- 问题现象描述
- 原因分析
- 解决措施
