/** * Resets to the default Alluxio configuration and initializes the client context singleton. * * This method is useful for undoing changes to {@link Configuration} made by unit tests. */ private static void reset() { sConf = new Configuration(); init(); }
return new Configuration(alluxioConfProperties);
/** * Starts the command line utility to mount the UfsPath to the AlluxioPath. In addition to the * regular mount operation, the metadata for all files will be loaded, unless the ufs path matches * an exclusion in the exclusions prefix list. This utility can be called repeatedly to load new * files written directly to the under file system. File deletions will not be reflected, ie. * deleting a file, foo, in the under file system and then running loadUfs will not delete the * file foo in Alluxio. * * NOTE: The user must guarantee additional calls to the utility do not change the Alluxio/Ufs * Path pairing. * * @param args the parameters as <AlluxioUri> <UfsUri> [<Optional ExcludePathPrefix, seperated * by ;>] */ public static void main(String[] args) { if (!(args.length == 2 || args.length == 3)) { printUsage(); System.exit(-1); } String exList = (args.length == 3) ? args[2] : ""; try { loadUfs(new AlluxioURI(args[0]), new AlluxioURI(args[1]), new PrefixList(exList, ";"), new Configuration()); } catch (Exception e) { e.printStackTrace(); printUsage(); System.exit(-1); } System.exit(0); }