public String getLocalDatabaseUrl() {
    String dbName = properties.getProperty(SERVER_DB_NAME.getKey());
    if(dbName == null || dbName.isEmpty()) {
      throw new RuntimeException("Server DB Name is not configured!");
    }

    return JDBC_LOCAL_URL + dbName;
  }
Check persistence type Ambari Server should use. Possible values:
in-memory - use in-memory Derby database to store data
local - use local Postgres instance
remote - use provided jdbc driver name and url to connect to database
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java