protected AbstractTachyonFS(TachyonConf tachyonConf) { mTachyonConf = tachyonConf; ClientContext.reset(mTachyonConf); }
/** * Initializes the client context singleton. */ public static synchronized void reset() { if (sInitialized) { return; } reset(new TachyonConf()); }
ClientContext.reset(tachyonConf);
ClientContext.reset(mWorkerConf);
@Override public Boolean call() throws Exception { TachyonConf tachyonConf = ClientContext.getConf(); tachyonConf.set(Constants.MASTER_HOSTNAME, mMasterLocation.getHost()); tachyonConf.set(Constants.MASTER_PORT, Integer.toString(mMasterLocation.getPort())); ClientContext.reset(tachyonConf); TachyonFileSystem tFS = TachyonFileSystem.TachyonFileSystemFactory.get(); write(tFS, mFilePath, mWriteType, mDeleteIfExists, mLength); return read(tFS, mFilePath, mReadType); }
@Override public Boolean call() throws Exception { TachyonConf tachyonConf = ClientContext.getConf(); tachyonConf.set(Constants.MASTER_HOSTNAME, mMasterLocation.getHost()); tachyonConf.set(Constants.MASTER_PORT, Integer.toString(mMasterLocation.getPort())); ClientContext.reset(tachyonConf); TachyonFileSystem tFS = TachyonFileSystem.TachyonFileSystemFactory.get(); long fileId = createFile(tFS); writeFile(fileId); return readFile(tFS, fileId); }
mWorkerThread.start(); ClientContext.reset(mWorkerConf);