gpt4 book ai didi

java堆栈跟踪的行号与hadoop lib不匹配

转载 作者:行者123 更新时间:2023-12-02 10:54:37 25 4
gpt4 key购买 nike

  1. 我不知道 <init> 的确切含义函数,为什么会有<>
  2. 实际上DFSClient中没有内部Class Conf
  3. 我跟踪了函数流程,直到DistributedFileSystem.initialize行号是正确的,为什么前七个跟踪的行号与源不匹配。

堆栈跟踪:

[DEBUG] [main] |service.AbstractService|: noteFailure java.lang.NumberFormatException: For input string: "30s"
[INFO] [main] |service.AbstractService|: Service org.apache.tez.dag.app.DAGAppMaster failed in state INITED; cause: java.lang.NumberFormatException: For input string: "30s"
java.lang.NumberFormatException: For input string: "30s"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at java.lang.Long.parseLong(Long.java:631)
at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1311)
at org.apache.hadoop.hdfs.DFSClient$Conf.<init>(DFSClient.java:502)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:637)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:170)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:355)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
at org.apache.tez.common.TezCommonUtils.getTezBaseStagingPath(TezCommonUtils.java:87)
at org.apache.tez.common.TezCommonUtils.getTezSystemStagingPath(TezCommonUtils.java:146)
at org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:492)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2662)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2659)
at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2464)

最佳答案

1) I don't know the exact meaning of <init> function, why there is an <>

<init>表示构造函数。 (如果您看到<cinit>,这是一个静态初始化伪方法。)

2) Actually there is no inner class Conf in DFSClient

您的源代码版本可能错误。

3) I trace the function flow, until DistributedFileSystem.initialize the line number is right, why top seven traces' line number not match with source.

您的源代码版本可能错误。

关于java堆栈跟踪的行号与hadoop lib不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51870599/

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