我已经安装了上一个SeaweedFS版本(version 30GB 1.72 linux amd64),使用了docker,我正在运行master、volume和filer服务器。
所有的系统似乎都正常工作,我可以上传和下载文件,但是当我在目录上查询时,API响应与官方文档中显示的响应不同。
例如,当我使用命令查询/dir1目录时:
curl -H "accept: application/json" localhost:8888/dir1/?pretty=y答复如下:
{
"Path": "/dir1",
"Entries": [
{
"FullPath": "/dir1/nyfile.bin",
"Mtime": "2020-04-16T17:56:55Z",
"Crtime": "2020-04-16T17:56:55Z",
"Mode": 432,
"Uid": 1000,
"Gid": 1000,
"Mime": "application/octet-stream",
"Replication": "000",
"Collection": "",
"TtlSec": 0,
"UserName": "",
"GroupNames": null,
"SymlinkTarget": "",
"Md5": "zQnaPjjZsQpiU+N3RXp7GQ==",
"Extended": null,
"chunks": [
{
"file_id": "7,030d2d9790",
"size": 55320265,
"mtime": 1587059815546104803,
"e_tag": "7b71a215",
"fid": {
"volume_id": 7,
"file_key": 3,
"cookie": 221091728
}
}
]
}
],
"Limit": 100,
"LastFileName": "weed.bin",
"ShouldDisplayLoadMore": false
}该响应与docs (https://github.com/chrislusf/seaweedfs/wiki/Filer-Server-API)中的示例非常不同:
> curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y" # list all files under /javascript/
{
"Directory": "/javascript/",
"Files": [
{
"name": "new_name.js",
"fid": "3,034389657e"
},
{
"name": "report.js",
"fid": "7,0254f1f3fd"
}
],
"Subdirectories": null
}所以,我有一些问题:
发布于 2020-04-19 18:59:32
https://stackoverflow.com/questions/61305120
复制相似问题