public static boolean checkFileExists(Path dumpPath, HiveConf conf, String fileName) throws IOException {
    FileSystem fs = dumpPath.getFileSystem(conf);
    return fs.exists(new Path(dumpPath, fileName));
  }
Gets &amp; checks whether the database is target of replication.
@param dbName name of database
@param hive hive object
@return true, if the database has repl.target.for property set.
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/OptimisedBootstrapUtils.java