Hi Haoyuan,
sorry to bother you again.
Removing the client worked about the previous error.
But now I've several other issues try to write and reading using only a remote client.
I execute the BasicOperations Example with several write options and they give me errors.
1) with TRY_CACHE
14/06/04 14:52:48 INFO : Trying to get local worker host : 192.168.2.52
14/06/04 14:52:48 INFO : No local worker on 192.168.2.52
14/06/04 14:52:48 INFO : createFile with fileId 52 took 165 ms.
14/06/04 14:52:48 WARN : Fail to cache for: The machine does not have any local worker.
Exception in thread "main" java.io.IOException: BlockIndex 0 is out of the bound in file ClientFileInfo(id:52, name:testPath4, path:/testPath4, checkpointPath:, length:0, blockSizeByte:1073741824, creationTimeMs:1401886370876, complete:true, folder:false, inMemory:true, needPin:false, needCache:true, blockIds:[], dependencyId:-1, inMemoryPercentage:100)
at tachyon.client.TachyonFS.getClientBlockInfo(TachyonFS.java:606)
at tachyon.client.TachyonFile.readByteBuffer(TachyonFile.java:207)
at tachyon.client.TachyonFile.readByteBuffer(TachyonFile.java:199)
2) with *THROUGHT write modes:
14/06/04 14:58:50 INFO : Trying to get local worker host : 192.168.2.52
14/06/04 14:58:50 INFO : No local worker on 192.168.2.52
14/06/04 14:58:50 INFO : createFile with fileId 53 took 293 ms.
14/06/04 14:58:50 WARN : Fail to cache for: The machine does not have any local worker.
Exception in thread "main" java.io.IOException: FailedToCheckpointException(message:Failed to rename /opt/brainaetic/tachyon/tmp/tachyon/workers/1401884000001/31/53 to /opt/brainaetic/tachyon/tmp/tachyon/data/53)
at tachyon.worker.WorkerClient.addCheckpoint(WorkerClient.java:80)
at tachyon.client.TachyonFS.addCheckpoint(TachyonFS.java:165)
at tachyon.client.FileOutStream.close(FileOutStream.java:96)
at tachyon.examples.BasicOperations.writeFile(BasicOperations.java:93)
at tachyon.examples.BasicOperations.main(BasicOperations.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: FailedToCheckpointException(message:Failed to rename /opt/brainaetic/tachyon/tmp/tachyon/workers/1401884000001/31/53 to /opt/brainaetic/tachyon/tmp/tachyon/data/53)
at tachyon.thrift.WorkerService$addCheckpoint_result$addCheckpoint_resultStandardScheme.read(WorkerService.java:3367)
at tachyon.thrift.WorkerService$addCheckpoint_result$addCheckpoint_resultStandardScheme.read(WorkerService.java:3335)
Logs on Master:
2014-06-04 14:58:52,766 INFO MASTER_LOGGER (MasterInfo.java:getWorker) - getLocalWorker: no local worker on 192.168.2.52
2014-06-04 14:58:52,834 INFO MASTER_LOGGER (MasterInfo.java:getClientFileInfo) - getClientFileInfo(/testPath5)
logs on Worker:
2014-06-04 14:58:52,801 INFO WORKER_LOGGER (WorkerStorage.java:getUserTempFolder) - Return UserTempFolder for 31 : /opt/brainaetic/tachyon_ramdisk/tachyonworker/users/31
2014-06-04 14:58:52,811 INFO WORKER_LOGGER (WorkerStorage.java:getUserUnderfsTempFolder) - Return UserHdfsTempFolder for 31 : /opt/brainaetic/tachyon/tmp/tachyon/workers/1401884000001/31
2014-06-04 14:58:52,888 INFO WORKER_LOGGER (WorkerStorage.java:getUserUnderfsTempFolder) - Return UserHdfsTempFolder for 31 : /opt/brainaetic/tachyon/tmp/tachyon/workers/1401884000001/31
2014-06-04 14:59:03,120 INFO WORKER_LOGGER (Users.java:removeUser) - Trying to cleanup user 31 : The user returns 0 bytes. Remove the user's folder /opt/brainaetic/tachyon_ramdisk/tachyonworker/users/31 ; Also remove users underfs folder /opt/brainaetic/tachyon/tmp/tachyon/workers/1401884000001/31
In case 1) the write seems to work, but it fail on reading the written data. 2) fails on searching to copy data in dirs in which the user has full permissions. (i tried to reformat the directory tachyon underfs).
Can you give me any hints to resolve the problem?
Best regards,
Alberto