public static String getHttpPath(String httpPath) {
    if (httpPath == null || httpPath.equals("")) {
      httpPath = "/*";
    } else {
      if (!httpPath.startsWith("/")) {
        httpPath = "/" + httpPath;
      }
      if (httpPath.endsWith("/")) {
        httpPath = httpPath + "*";
      }
      if (!httpPath.endsWith("/*")) {
        httpPath = httpPath + "/*";
      }
    }
    return httpPath;
  }
The config parameter can be like "path", "/path", "/path/", "path/*", "/path1/path2/*" and so on.
httpPath should end up as "/*", "/path/*" or "/path1/../pathN/*"
@param httpPath
@return
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java