$ hdfs dfsrouter
...
2021-02-22 17:21:55,400 ERROR router.DFSRouter: Failed to start router
java.lang.NoClassDefFoundError: org/apache/hadoop/tools/fedbalance/procedure/BalanceProcedure
at org.apache.hadoop.hdfs.server.federation.router.RouterClientProtocol.<init>(RouterClientProtocol.java:195)
at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.<init>(RouterRpcServer.java:394)
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:165)
at org.apache.hadoop.hdfs.server.federation.router.DFSRouter.main(DFSRouter.java:69)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.tools.fedbalance.procedure.BalanceProcedure
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
2021-02-22 17:21:55,402 INFO util.ExitUtil: Exiting with status 1: java.lang.NoClassDefFoundError: org/apache/hadoop/tools/fedbalance/procedure/BalanceProcedure
2021-02-22 17:21:55,404 INFO router.DFSRouter: SHUTDOWN_MSG: