Sammi Chen created HDDS-5782:
--------------------------------
Summary: DatanodeRatisGrpcConfig use wrong type for config keys
Key: HDDS-5782
URL: https://issues.apache.org/jira/browse/HDDS-5782
Project: Apache Ozone
Issue Type: Bug
Reporter: Sammi Chen
Assignee: Sammi Chen
When trying to use DatanodeRatisGrpcConfig in XceiverServerRatis, it reports
type error and DN failed to start.
2021-09-23 10:18:57,337 [main] ERROR
org.apache.hadoop.ozone.HddsDatanodeService: Exception in HddsDatanodeService.
java.lang.NumberFormatException: For input string: "32MB"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at
org.apache.hadoop.hdds.conf.ConfigurationReflectionUtil.injectConfigurationToObject(ConfigurationReflectionUtil.java:86)
at
org.apache.hadoop.hdds.conf.ConfigurationReflectionUtil.injectConfiguration(ConfigurationReflectionUtil.java:41)
at
org.apache.hadoop.hdds.conf.ConfigurationSource.getObject(ConfigurationSource.java:143)
at
org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.newRaftProperties(XceiverServerRatis.java:347)
at
org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.<init>(XceiverServerRatis.java:159)
at
org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.newXceiverServerRatis(XceiverServerRatis.java:450)
at
org.apache.hadoop.ozone.container.ozoneimpl.OzoneContainer.<init>(OzoneContainer.java:172)
at
org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.<init>(DatanodeStateMachine.java:150)
at
org.apache.hadoop.ozone.HddsDatanodeService.start(HddsDatanodeService.java:275)
at
org.apache.hadoop.ozone.HddsDatanodeService.start(HddsDatanodeService.java:207)
at
org.apache.hadoop.ozone.HddsDatanodeService.call(HddsDatanodeService.java:175)
at
org.apache.hadoop.ozone.HddsDatanodeService.call(HddsDatanodeService.java:92)
at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
at picocli.CommandLine.access$1100(CommandLine.java:145)
at
picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
at
picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2152)
at picocli.CommandLine.parseWithHandlers(CommandLine.java:2530)
at picocli.CommandLine.parseWithHandler(CommandLine.java:2465)
at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:96)
at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:87)
at
org.apache.hadoop.ozone.HddsDatanodeService.main(HddsDatanodeService.java:158)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]