Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

tfstool的put文件没有输出类似T开头的18文字字符串 #3

Open
youngor opened this issue Dec 12, 2013 · 3 comments
Open

tfstool的put文件没有输出类似T开头的18文字字符串 #3

youngor opened this issue Dec 12, 2013 · 3 comments

Comments

@youngor
Copy link

youngor commented Dec 12, 2013

./bin/tfstool -s 10.232.36.201:8100 -i "put testfile"

将本地testfile存入tfs, -s 指定nameserver的ip:port。 如果成功,会打印 put testfile => T1QEBXXDpXXXXXXXXX success. 类似的消息,其中T开头一串字符是TFS为这个文件生成的文件名,一共18个字符;要想从TFS取出该文件时,需要指定该文件名。

./bin/tfstoo -s 10.232.36.201:8100 -i "get T1QEBXXDpXXXXXXXXX localfile"

从TFS读取T1QEBXXDpXXXXXXXXX,存储到本地localfile中;如果成功,会打印fetch T1QEBXXDpXXXXXXXXX => localfile success

但是我的没有这个T开头的文字输出,怎么办

@echo-xu
Copy link

echo-xu commented Jan 3, 2014

我也遇到这个问题了。TFS Version: 2.2.0. OS: Ubuntu 12.04.

echo@echo-pc:~/Documents$ ./tfs-bin/bin/tfstool -s localhost:8100 -i 'put testfile'
[2014-01-03 14:45:39] DEBUG base_packet_factory.cpp:48 [140714096424832] pcode: 20, length: 28
[2014-01-03 14:45:39] DEBUG socket.cpp:113 [140714096424832] ����, fd=4, addr=127.0.0.1:8100
[2014-01-03 14:45:39] INFO transport.cpp:394 [140714096424832] ADDIOC, SOCK: 4, 127.0.0.1:8100, RON: 1, WON: 1, IOCount:1, IOC:0x1fe3840
[2014-01-03 14:45:39] DEBUG channelpool.cpp:57 [140714096424832] ������Channel����:25 (48)
[2014-01-03 14:45:39] INFO tfs_session.cpp:812 [140714096424832] get cluster id from nameserver success. cluster id: 1
[2014-01-03 14:45:39] INFO tfs_client_impl.cpp:584 [140714096424832] set cache time: 1800
[2014-01-03 14:45:39] INFO tfs_client_impl.cpp:565 [140714096424832] set cache items: 1000
[2014-01-03 14:45:39] DEBUG base_packet_factory.cpp:48 [140714096424832] pcode: 2, length: 12
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:118 [140714096424832] tfs open success: get block info success, blockid: 207, fileid: 0, mode: 2, ret: 0
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:818 [140714096424832] create file start, client: 0x1fe5390, index: 0, blockid: 207, fileid: 0
[2014-01-03 14:45:39] DEBUG base_packet_factory.cpp:48 [140714096424832] pcode: 21, length: 12
[2014-01-03 14:45:39] DEBUG socket.cpp:113 [140714096424832] ����, fd=6, addr=192.168.1.194:8200
[2014-01-03 14:45:39] INFO transport.cpp:394 [140714096424832] ADDIOC, SOCK: 6, 192.168.1.194:8200, RON: 1, WON: 1, IOCount:2, IOC:0x1fe5630
[2014-01-03 14:45:39] DEBUG channelpool.cpp:57 [140714096424832] ������Channel����:50 (48)
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:755 [140714096424832] do request success. client: 0x1fe5390, index: 0, phase: 1, ret: 0, blockid: 207, fileid: 0, offset: 0, size: 0, crc: 0, inneroffset: 0, filenumber: 0, status: 1, rserver: 192.168.1.194:8200, wserver: 192.168.1.194:8200.
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:588 [140714096424832] send packet. request size: 1, successful request size: 1
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:668 [140714096424832] get success response. client id: 0x1fe5390, request size: 1, get response size: 1
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:883 [140714096424832] create file name rsp. blockid: 207, fileid: 1, filenumber: 13979639470647934980
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:803 [140714096424832] do response success. index: 0, phase: 1, ret: 0, blockid: 207, fileid: 1, offset: 0, size: 0, crc: 0, inneroffset: 0, filenumber: 13979639470647934980, status: 2, rserver: 192.168.1.194:8200, wserver: 192.168.1.194:8200.
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:914 [140714096424832] tfs write data start, blockid: 207, fileid: 1, size: 10, offset: 0
[2014-01-03 14:45:39] DEBUG base_packet_factory.cpp:48 [140714096424832] pcode: 9, length: 36
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:755 [140714096424832] do request success. client: 0x1fe56b0, index: 0, phase: 2, ret: 0, blockid: 207, fileid: 1, offset: 0, size: 10, crc: 0, inneroffset: 0, filenumber: 13979639470647934980, status: 2, rserver: 192.168.1.194:8200, wserver: 192.168.1.194:8200.
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:588 [140714096424832] send packet. request size: 1, successful request size: 1
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:668 [140714096424832] get success response. client id: 0x1fe56b0, request size: 1, get response size: 1
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:964 [140714096424832] tfs write data success, crc: 1036843176, offset: 0, size: 10
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:803 [140714096424832] do response success. index: 0, phase: 2, ret: 0, blockid: 207, fileid: 1, offset: 0, size: 10, crc: 1036843176, inneroffset: 0, filenumber: 13979639470647934980, status: 3, rserver: 192.168.1.194:8200, wserver: 192.168.1.194:8200.
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:301 [140714096424832] write success, offset: 0, size: 10, segment count: 1
[2014-01-03 14:45:39] DEBUG base_packet_factory.cpp:48 [140714096424832] pcode: 10, length: 44
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:755 [140714096424832] do request success. client: 0x1fe56b0, index: 0, phase: 3, ret: 0, blockid: 207, fileid: 1, offset: 0, size: 0, crc: 1036843176, inneroffset: 0, filenumber: 13979639470647934980, status: 3, rserver: 192.168.1.194:8200, wserver: 192.168.1.194:8200.
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:588 [140714096424832] send packet. request size: 1, successful request size: 1
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:668 [140714096424832] get success response. client id: 0x1fe56b0, request size: 1, get response size: 1
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:1051 [140714096424832] tfs file close success, dsip: 192.168.1.194:8200
[2014-01-03 14:45:39] DEBUG tfs_file.cpp:803 [140714096424832] do response success. index: 0, phase: 3, ret: 0, blockid: 207, fileid: 1, offset: 0, size: 0, crc: 1036843176, inneroffset: 0, filenumber: 13979639470647934980, status: 4, rserver: 192.168.1.194:8200, wserver: 192.168.1.194:8200.
put testfile => success.
[2014-01-03 14:45:39] INFO transport.cpp:460 [140714096424832] DELIOC, IOCount:1, IOC:0x1fe3840
[2014-01-03 14:45:39] DEBUG socket.cpp:122 [140714096424832] �ر�, fd=4, addr=127.0.0.1:8100
[2014-01-03 14:45:39] INFO transport.cpp:460 [140714096424832] DELIOC, IOCount:0, IOC:0x1fe5630
[2014-01-03 14:45:39] DEBUG socket.cpp:122 [140714096424832] �ر�, fd=6, addr=192.168.1.194:8200

@ronnin
Copy link

ronnin commented Mar 28, 2014

me too.

$ echo 'dummy' > testfile

$ /opt/tfs/bin/tfstool -s 1.1.8.85:8100 -i "put testfile"

...
[2014-03-28 10:44:27] DEBUG tfs_file.cpp:803 [140059973834624] do response success. index: 0, phase: 3, ret: 0, blockid: 105, fileid: 1, offset: 0, size: 0, crc: -40123685, inneroffset: 0, filenumber: 6127148426908925957, status: 4, rserver: 1.1.8.85:8200, wserver: 1.1.8.85:8200.
put testfile => (null) success.
[2014-03-28 10:44:28] INFO transport.cpp:460 [140059973834624] DELIOC, IOCount:1, IOC:0x13db660
...

@ronnin
Copy link

ronnin commented Mar 28, 2014

the env of my case:

  • Ubuntu 13.10 (3.11.0-18-generic x86_64)
  • alibaba/tfs master branch
  • one nameserver listen on 8100
  • one dataserver listen on 8200, with only one mount path (size 20G)

is it helpful?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants