Yarn日志聚合-java.io.eofexception

ep6jt1vc  于 2021-06-02  发布在  Hadoop
关注(0)|答案(0)|浏览(547)

我正在尝试使用这里描述的yarn日志聚合工具,我在yarn-site.xml中通过设置 yarn.log-aggregation-enable 是真的。但在运行聚合时,出现以下异常:

$ yarn logs -applicationId application_1414083848609_0001
14/10/24 11:08:26 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
14/10/24 11:08:27 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Exception in thread "main" java.io.EOFException: Cannot seek to negative offset
    at org.apache.hadoop.hdfs.DFSInputStream.seek(DFSInputStream.java:1381)
    at org.apache.hadoop.fs.FSDataInputStream.seek(FSDataInputStream.java:62)
    at org.apache.hadoop.io.file.tfile.BCFile$Reader.<init>(BCFile.java:624)
    at org.apache.hadoop.io.file.tfile.TFile$Reader.<init>(TFile.java:804)
    at org.apache.hadoop.yarn.logaggregation.AggregatedLogFormat$LogReader.<init>(AggregatedLogFormat.java:341)
    at org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.dumpAllContainersLogs(LogCLIHelpers.java:124)
    at org.apache.hadoop.yarn.client.cli.LogsCLI.run(LogsCLI.java:137)
    at org.apache.hadoop.yarn.client.cli.LogsCLI.main(LogsCLI.java:199)

这里怎么了?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题