Avro工具-无法在hadoop二进制路径中找到winutils二进制文件

时间:2020-03-31 05:48:10

标签: java azure azure-eventhub avro-tools

我遵循这份文档Capture streaming events - Azure Event Hubs | Microsoft Docs在Windows Server 2012 R2中使用Avro工具。我收到以下错误消息,截图: Could not locate executable winutils

20/03/31 13:31:24错误util.Shell:无法找到winutils hadoop二进制路径java.io.IOException中的二进制:无法找到 Hadoop二进制文件中的可执行文件null \ bin \ winutils.exe。在 org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:382)在 org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:397)在 org.apache.hadoop.util.Shell。(Shell.java:390)在 org.apache.hadoop.util.StringUtils。(StringUtils.java:80)在 org.apache.hadoop.fs.FileSystem $ Cache $ Key。(FileSystem.java:2820) 在 org.apache.hadoop.fs.FileSystem $ Cache $ Key。(FileSystem.java:2816) 在org.apache.hadoop.fs.FileSystem $ Cache.get(FileSystem.java:2682) 在org.apache.hadoop.fs.FileSystem.get(FileSystem.java:372)处 org.apache.hadoop.fs.FileSystem.get(FileSystem.java:171)在 org.apache.hadoop.fs.FileSystem.get(FileSystem.java:356)在 org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)在 org.apache.avro.mapred.FsInput。(FsInput.java:38)在 org.apache.avro.tool.Util.openSeekableFromFS(Util.java:110)在 org.apache.avro.tool.DataFileGetSchemaTool.run(DataFileGetSchemaTool.java:46) 在org.apache.avro.tool.Main.run(Main.java:66)处 org.apache.avro.tool.Main.main(Main.java:55)20/03/31 13:31:24警告 util.NativeCodeLoader:无法为您的本机-hadoop库加载 平台...在适当的地方使用内建的Java类

{“ type”:“ record”,“ name”:“ EventData”,“ namespace”: “ Microsoft.ServiceBus.Messaging”,“字段”:[{ “ name”:“ SequenceNumber”, “ type”:“ long”},{ “ name”:“ Offset”, “ type”:“ string”},{ “ name”:“ EnqueuedTimeUtc”, “ type”:“ string”},{ “ name”:“ SystemProperties”, “类型”:{ “ type”:“ map”, “ values”:[“ long”,“ double”,“ string”,“ bytes”] }},{ “ name”:“属性”, “类型”:{ “ type”:“ map”, “ values”:[“ long”,“ double”,“ string”,“ bytes”,“ null”] }},{ “ name”:“ Body”, “ type”:[“ null”,“ bytes”]}]}

0 个答案:

没有答案