public static List<InetSocketAddress> getMasterRpcAddresses(AlluxioConfiguration conf) {
    // First check whether rpc addresses are explicitly configured.
    if (conf.isSet(PropertyKey.MASTER_RPC_ADDRESSES)) {
      return parseInetSocketAddresses(conf.getList(PropertyKey.MASTER_RPC_ADDRESSES));
    }

    // Fall back on server-side journal configuration.
    int rpcPort = NetworkAddressUtils.getPort(NetworkAddressUtils.ServiceType.MASTER_RPC, conf);
    return overridePort(getEmbeddedJournalAddresses(conf, ServiceType.MASTER_RAFT), rpcPort);
  }
@Test
  public void getMasterRpcAddressesFallback() {
    AlluxioConfiguration conf =
        createConf(ImmutableMap.of(
            PropertyKey.MASTER_EMBEDDED_JOURNAL_ADDRESSES, "host1:99,host2:100",
            PropertyKey.MASTER_RPC_PORT, 50));
    assertEquals(
        Arrays.asList(InetSocketAddress.createUnresolved("host1", 50),
            InetSocketAddress.createUnresolved("host2", 50)),
        ConfigurationUtils.getMasterRpcAddresses(conf));
  }