gpt4 book ai didi

java - 如何增加CodedInputStream.setSizeLimit()

转载 作者:太空宇宙 更新时间:2023-11-04 13:37:07 25 4
gpt4 key购买 nike

我正在尝试使用 Java 读取 ORC 文件

Configuration conf = new Configuration();
Reader createReader = OrcFile.createReader( new Path("/a"), OrcFile.readerOptions(conf));

我收到以下错误

com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit.

此问题已在另一个程序中得到解决。 https://code.google.com/p/protobufeditor/issues/detail?id=2

但我不确定他们是如何做到的。你能帮我一下吗?

最佳答案

我认为你在这里遗漏了很多东西也许这可以帮助你OrcNewInputFormat Test

关于java - 如何增加CodedInputStream.setSizeLimit(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31590483/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com