[ https://issues.apache.org/jira/browse/HDFS-16217?focusedWorklogId=650557&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-650557 ]
ASF GitHub Bot logged work on HDFS-16217: ----------------------------------------- Author: ASF GitHub Bot Created on: 14/Sep/21 13:02 Start Date: 14/Sep/21 13:02 Worklog Time Spent: 10m Work Description: virajjasani opened a new pull request #3434: URL: https://github.com/apache/hadoop/pull/3434 ### Description of PR When dfs.federation.router.federation.rename.option is set to DISTCP and hdfs.fedbalance.procedure.scheduler.journal.uri is not set, DFSRouter fails to launch. ``` 2021-09-08 15:39:11,818 ERROR org.apache.hadoop.hdfs.server.federation.router.DFSRouter: Failed to start router java.lang.NullPointerException at java.base/java.net.URI$Parser.parse(URI.java:3104) at java.base/java.net.URI.<init>(URI.java:600) at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.initRouterFedRename(RouterRpcServer.java:444) at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.<init>(RouterRpcServer.java:419) at org.apache.hadoop.hdfs.server.federation.router.Router.createRpcServer(Router.java:391) at org.apache.hadoop.hdfs.server.federation.router.Router.serviceInit(Router.java:188) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) at org.apache.hadoop.hdfs.server.federation.router.DFSRouter.main(DFSRouter.java:69) ``` hdfs.fedbalance.procedure.scheduler.journal.uri is hdfs://localhost:8020/tmp/procedure by default, however, the default value is not used in DFSRouter. ### How was this patch tested? Local dev testing. After applying fix for HDFS-16219, we can reproduce above error. And the fix provides default value to hdfs.fedbalance.procedure.scheduler.journal.uri. ### For code changes: - [X] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')? - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 650557) Remaining Estimate: 0h Time Spent: 10m > RBF: Set default value of hdfs.fedbalance.procedure.scheduler.journal.uri > ------------------------------------------------------------------------- > > Key: HDFS-16217 > URL: https://issues.apache.org/jira/browse/HDFS-16217 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: rbf > Environment: Hadoop 3.3.0 with patches > Reporter: Akira Ajisaka > Assignee: Viraj Jasani > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > When dfs.federation.router.federation.rename.option is set to DISTCP and > hdfs.fedbalance.procedure.scheduler.journal.uri is not set, DFSRouter fails > to launch. > {quote} > 2021-09-08 15:39:11,818 ERROR > org.apache.hadoop.hdfs.server.federation.router.DFSRouter: Failed to start > router > java.lang.NullPointerException > at java.base/java.net.URI$Parser.parse(URI.java:3104) > at java.base/java.net.URI.<init>(URI.java:600) > at > org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.initRouterFedRename(RouterRpcServer.java:444) > at > org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.<init>(RouterRpcServer.java:419) > at > org.apache.hadoop.hdfs.server.federation.router.Router.createRpcServer(Router.java:391) > at > org.apache.hadoop.hdfs.server.federation.router.Router.serviceInit(Router.java:188) > at > org.apache.hadoop.service.AbstractService.init(AbstractService.java:164) > at > org.apache.hadoop.hdfs.server.federation.router.DFSRouter.main(DFSRouter.java:69) > {quote} > hdfs.fedbalance.procedure.scheduler.journal.uri is > hdfs://localhost:8020/tmp/procedure by default, however, the default value is > not used in DFSRouter. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org