public static Hive get(HiveConf c, boolean needsRefresh) throws HiveException {
    return getInternal(c, needsRefresh, false, true);
  }
get a connection to metastore. see get(HiveConf) function for comments

@param c
         new conf
@param needsRefresh
         if true then creates a new one
@return The connection to the metastore
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java