String getHiveMetastoreUri ( Configuration conf ) { String metastoreUris = conf . get ( Loader . HIVE_METASTORE_URI_PROP ) ; if ( metastoreUris == null ) { return null ; } String [ ] uriArray = metastoreUris . split ( HIVE_METASTORE_URIS_SEPARATOR ) ; return uriArray [ 0 ] ; }
This method extracts one URI for the Hive metastore . The hive . metastore . uris property in the parameter Configuration object can contain a list of uris but since Kite does not support highly available Hive metastore currently we need to make sure that only the first one is retrieved .