fastdfs-client-java icon indicating copy to clipboard operation
fastdfs-client-java copied to clipboard

FastDFS java client SDK

Results 82 fastdfs-client-java issues
Sort by recently updated
recently updated
newest added

假设现在有group1和group2两个组,然后有个文件是在group2里面保存的。但是在用storageClient.delete_file(groupName,remote_filename)方法去删除文件的时候,虽然已经指定了groupName为group2,但是首次执行时仍会去访问group1,因为找不到文件就返回了22错误码。然后再执行一次时,才会去访问group2。 然后再执行一次,又会去访问group1了。 就很奇怪为什么明明已经指定了group,但是在执行的时候还是会来回的变换group访问,这是bug吗? 而如果用linux安装时带的fdfs_delete_file 功能去操作时就不会有这个问题。

maven clean install成功 执行mvn install:install-file -DgroupId=org.csource -DartifactId=fastdfs-client-java -Dversion=${version} -Dpackaging=jar -Dfile=fastdfs-client-java-${version}.jar报错, ![qq 20180515165003](https://user-images.githubusercontent.com/39152711/40046572-da9813dc-585f-11e8-958b-1f7d6368afa1.png)

在两台虚拟机中搭建了fastDFS集群,在虚拟机中使用命令上传没问题,在本地浏览器中也可以访问,但是在使用源码的测试用例中,会提示getStoreStorage fail, errno code: 2,请告知,谢谢

当集成fastdfs-client后,将应用配置到阿里云上面,fastdfs服务器在内网,然后配置fdfs.tracker-list为外网ip, 但是23000端口还是读取到了内网IP. com.github.tobato.fastdfs.proto.AbstractFdfsCommand.send(AbstractFdfsCommand.java:74) - 发出交易请求..报文头为ProtoHead [contentLength=0, cmd=101, status=0] [17:16:41:037] [DEBUG] - com.github.tobato.fastdfs.proto.AbstractFdfsCommand.send(AbstractFdfsCommand.java:75) - 交易参数为[] [17:16:41:050] [DEBUG] - com.github.tobato.fastdfs.proto.AbstractFdfsCommand.receive(AbstractFdfsCommand.java:99) - 服务端返回报文头ProtoHead [contentLength=40, cmd=100, status=0] [17:16:41:053] [DEBUG] - com.github.tobato.fastdfs.proto.mapper.ObjectMataData.dumpObjectMataData(ObjectMataData.java:201) - dump class=com.github.tobato.fastdfs.domain.StorageNode...

为什么不能直接从中央仓库拉下来,这个是我自己构建到自己的本地仓库的。

net.oschina.zcx7878 fastdfs-client-java 1.27.0.0 这样的就可以。

如题,刚刚接触fastdfs,不太了解是否还有更好的初始化获取配置处理方法,看到大部分的示例代码初始化的时候都是读取配置文件,但是很多大规模部署项目,配置都是配置中心集中管理的,配置值也是直接通过spring的@Value注入bean的,很少直接配置在文件里,如果涉及配置修改,配置文件是个比较麻烦的事情。

org.csource.common.MyException: connect to server 172.xxx.xxx.xxx:22122 fail, emsg:Connection refused: connect at org.csource.fastdfs.pool.ConnectionFactory.create(ConnectionFactory.java:26) ~[fastdfs-client-java-1.29.jar:?] at org.csource.fastdfs.pool.ConnectionManager.getConnection(ConnectionManager.java:76) ~[fastdfs-client-java-1.29.jar:?] at org.csource.fastdfs.pool.ConnectionPool.getConnection(ConnectionPool.java:32) ~[fastdfs-client-java-1.29.jar:?] at org.csource.fastdfs.TrackerServer.getConnection(TrackerServer.java:36) ~[fastdfs-client-java-1.29.jar:?] at org.csource.fastdfs.TrackerClient.listGroups(TrackerClient.java:485) ~[fastdfs-client-java-1.29.jar:?]

你敢不敢把代码放到maven中央仓库上..。下载个jar包难死个人。