我正在尝试使用 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/