public String executeDescribeDatabase ( String dbName ) throws StageException { String sql = buildDescribeDatabase ( dbName ) ; return executeQuery ( sql , rs -> { if ( ! rs . next ( ) ) { throw new HiveStageCheckedException ( Errors . HIVE_35 , "Database doesn't exists." ) ; } return HiveMetastoreUtil . stripHdfsHostAndPort ( rs . getString ( RESULT_SET_LOCATION ) ) ; } ) ; }
Returns location for given database .