code: public static void setDefaultUri(Configuration conf, URI uri) {
      conf.set(FS_DEFAULT_NAME_KEY, uri.toString());
    }
docs: Set the default filesystem URI in a configuration.
  @param conf the configuration to alter
  @param uri the new default filesystem uri