admin管理员组文章数量:1392101
I have customer-supplied .avro files that use snappy compression, and I currently only have the avro-tools 1.11.3 jar file. When I try to do pretty much anything with these files, I get the following error:
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform...using builtin-java classes where applicable
Exception in thread "main" .apache.avro.AvroRuntimeException: Unrecognized codec: snappy
at .apache.avro.file.CodecFactory.fromString(CodecFactory.java:159)
at .apache.avro.file.DataFileStream.resolveCodec(DataFileStream.java:158)
at .apache.avro.file.DataFileStream.initialize(DataFileStream.java:144)
at .apache.avro.file.DataFileStream.<init>(DataFileStream.java:90)
at .apache.avro.tool.DataFileReadTool.run(DataFileReadTool.java:93)
at .apache.avro.tool.Main.run(Main.java:67)
at .apache.avro.tool.Main.main(Main.java:56)
Note I do not have access to the internet on the system in question and I don't have admin access, so I'd like to make sure my request is correct and complete. I'm just looking to convert the data to JSON or text for now.
Thank you!
EDIT:
Okay, I am officially lost. I unzipped the avro-tools jar file and found that snappy-java is already there! There's even a class called SnappyCodec.class in /xerial/snappy, so I assume this is supposed to work out of the box.
I'm running OpenJDK 1.8.0_442, any chance that's an issue? The only other thing I can think of is some kind of security setting interfering with the process. I've had SELinux and FIPS mode issues bite me before, but as a non-admin I don't have any visibility into those. I'd appreciate any insight and things to try/check.
Thanks again!
本文标签: javaWhy does my avrotoolsjar not recognize snappycompressed avro filesStack Overflow
版权声明:本文标题:java - Why does my avro-tools.jar not recognize snappy-compressed avro files? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744779980a2624650.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论