If config is appended with serviceId and nodeId use that, else fall back to config appended without service id and node id. If that is also not defined, fallback to a default value.
ozone.scm.grpc.port = 9898 is set
We should use this port for SCM Grpc Service, as there is no port config with serviceid and nodeid defined.
Current code behavior is if port config with service id and node id not defined read from the default value.
The problematic code is
In this way fix similarly for all RPC services.