copyFileToLocal(srcPath, dstFile);
}
}
private void copyFileToLocal(TachyonURI srcPath, File dstFile) throws IOException {
try {
<BUG>TachyonFile srcFd = mTfs.open(srcPath);</BUG>
File tmpDst = File.createTempFile("copyToLocal", null);
tmpDst.deleteOnExit();
Closer closer = Closer.create();
<BUG>try {
InStreamOptions op = new InStreamOptions.Builder(mTachyonConf)
.setTachyonStorageType(TachyonStorageType.NO_STORE).build();
FileInStream is = closer.register(mTfs.getInStream(srcFd, op));
</BUG>
FileOutputStream out = closer.register(new FileOutputStream(tmpDst));

copyFileToLocal(srcPath, dstFile);
}
}
private void copyFileToLocal(TachyonURI srcPath, File dstFile) throws IOException {
try {
File tmpDst = File.createTempFile("copyToLocal", null);
tmpDst.deleteOnExit();
Closer closer = Closer.create();
try {
OpenFileOptions options = OpenFileOptions.defaults().setReadType(ReadType.NO_CACHE);
FileInStream is = closer.register(mTfs.openFile(srcPath, options));
FileOutputStream out = closer.register(new FileOutputStream(tmpDst));
