happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

DefaultFastFileStorageClient.getStorageNode(String groupName)获取的storage节点的port=0 #698

Open XuanfengHong opened 4 months ago

XuanfengHong commented 4 months ago

本地windows子系统已经部署好tracker和storage节点,storage日志: image 可见storage的port是23000无误

但是从tracker获取的storage的地址,port却是0 image

如果手动修改port=23000 image

上传可以成功 image 说明fdfs本身是OK的

求教为什么这里获取的port却会是0 ?

happyfish100 commented 4 months ago

感觉是 client SDK 和 server 端版本不匹配导致的。 client SDK 和server端分别用的什么版本?

XuanfengHong commented 4 months ago

感觉是 client SDK 和 server 端版本不匹配导致的。 client SDK 和server端分别用的什么版本?

啊,不好意思,我是初次学习使用fdfs,请问您说的client SDK是指我引入的fastdfs-client吗?这个用的是1.27.2 ,server端我用fdfs_monitor /etc/fdfs/client.conf 看了一下,应该是6.12.1

请问是需要改一下fastdfs-client版本吗?用哪个版本合适?

happyfish100 commented 4 months ago

fastdfs-client-java 要使用最新版本,目前是 1.32