public WebInterfaceBrowseLogsServlet(boolean isMasterServlet) { mTachyonConf = new TachyonConf(); String prefix = isMasterServlet ? "/" : "/worker/"; mBrowseJsp = prefix + "browse.jsp"; mViewJsp = prefix + "viewFile.jsp"; }
/** * Reset the TachyonConf instance in worker context, for test only. * TODO(binfan): consider a better way to mock test TachyonConf */ public static void resetConf() { sTachyonConf = new TachyonConf(); } }
/** * Reset the TachyonConf instance in master context, for test only. * TODO(binfan): consider a better way to mock test TachyonConf */ public static void resetConf() { sTachyonConf = new TachyonConf(); } }
public WebInterfaceWorkersServlet(BlockMaster blockMaster) { mBlockMaster = blockMaster; mTachyonConf = new TachyonConf(); }
public WebInterfaceConfigurationServlet(FileSystemMaster fsMaster) { mFsMaster = fsMaster; mTachyonConf = new TachyonConf(); }
public WebInterfaceBrowseServlet(TachyonMaster master) { mMaster = master; mTachyonConf = new TachyonConf(); }
public WebInterfaceDownloadLocalServlet() { mTachyonConf = new TachyonConf(); }
/** * Initializes the client context singleton. */ public static synchronized void reset() { if (sInitialized) { return; } reset(new TachyonConf()); }
/** * Start Tachyon Master by executing the launch script. */ private static void startMaster() { String startMasterCommand = new TachyonConf().get(Constants.TACHYON_HOME) + "/bin/tachyon-start.sh master"; try { Runtime.getRuntime().exec(startMasterCommand).waitFor(); CommonUtils.sleepMs(LOG, 1000); } catch (Exception e) { LOG.error("Error when starting Master", e); } }
/** * Main method, starts a new TfsShell * * @param argv [] Array of arguments given by the user's input from the terminal */ public static void main(String[] argv) throws IOException { TfsShell shell = new TfsShell(new TachyonConf()); int ret; try { ret = shell.run(argv); } finally { shell.close(); } System.exit(ret); }
/** * Stop the current Tachyon cluster. This is used for preparation and clean up. * To crash the Master, use <code>killMaster</code>. */ private static void stopCluster() { String stopClusterCommand = new TachyonConf().get(Constants.TACHYON_HOME) + "/bin/tachyon-stop.sh"; try { Runtime.getRuntime().exec(stopClusterCommand).waitFor(); CommonUtils.sleepMs(LOG, 1000); } catch (Exception e) { LOG.error("Error when stop Tachyon cluster", e); } } }
private int deleteLineage(String[] argv) throws IOException { TachyonLineage tl = TachyonLineage.get(); long lineageId = Long.parseLong(argv[1]); boolean cascade = Boolean.parseBoolean(argv[2]); DeleteLineageOptions options = new DeleteLineageOptions.Builder(new TachyonConf()).setCascade(cascade).build(); try { tl.deleteLineage(lineageId, options); } catch (Exception e) { e.printStackTrace(); System.out.println("Lineage '" + lineageId + "' could not be deleted."); } System.out.println("Lineage " + lineageId + " has been deleted."); return 0; }
return new TachyonConf(tachyonConfProperties);
Pattern.compile(Constants.WORKER_TIERED_STORE_LEVEL_RESERVED_RATIO_FORMAT.replace("%d", "\\d+").replace(".", "\\.")); TachyonConf tachyonConf = new TachyonConf(); boolean valid = true; for (Entry<String, String> entry : tachyonConf.toMap().entrySet()) {
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 TachyonURI(args[0]), new TachyonURI(args[1]), exList, new TachyonConf()); } catch (Exception e) { e.printStackTrace(); printUsage(); System.exit(-1); } System.exit(0); }
@Override public Boolean call() throws Exception { TachyonFS tachyonClient = TachyonFS.get(mMasterAddress, new TachyonConf()); createRawTable(tachyonClient); write(tachyonClient); return read(tachyonClient); }
TachyonConf tachyonConf = new TachyonConf();
new TachyonConf()).setTachyonStorageType(TachyonStorageType.NO_STORE).build(); is = tachyonClient.getInStream(fd, op); out = response.getOutputStream();
new OutStreamOptions.Builder(new TachyonConf()) .setTachyonStorageType(TachyonStorageType.NO_STORE) .setUnderStorageType(UnderStorageType.NO_PERSIST).build();
TachyonConf conf = new TachyonConf(); String ufsRoot = conf.get(Constants.UNDERFS_ADDRESS); UnderFileSystem ufs = UnderFileSystem.get(ufsRoot, conf);