TachyonURI path = new TachyonURI(argv[1]);
TachyonFS tachyonClient = createFS(path);
int fileId = tachyonClient.getFileId(path);
tachyonClient.pinFile(fileId);
try {
tachyonClient.pinFile(fileId);
System.out.println("File '" + path + "' was successfully pinned.");
return 0;
} catch (Exception e) {
e.printStackTrace();
System.out.println("File '" + path + "' could not be pinned.");