Open GoogleCodeExporter opened 9 years ago
ClientGlobal.init("./fdfs_client.conf"); System.out.println("network_timeout=" + ClientGlobal.g_network_timeout + "ms"); System.out.println("charset=" + ClientGlobal.g_charset); TrackerGroup tg = new TrackerGroup(new InetSocketAddress[]{new InetSocketAddress("192.168.121.49", 22122)}); TrackerClient trackerClient = new TrackerClient(tg); TrackerServer trackerServer = trackerClient.getConnection(); if (trackerServer == null) { System.out.println("getConnection return null"); return; } StorageServer storageServer = trackerClient.getStoreStorage(trackerServer); if (storageServer == null) { System.out.println("getStoreStorage return null"); } 返回getStoreStorage return null,我检查过配置,没有问题了,服务端的192.168.121.49:22122(t racker)和192.168.121.49:23000(storage)的端口都可以telnet得上 附fdfs_config,如下: connect_timeout = 2 network_timeout = 30 charset = UTF-8 http.tracker_http_port = 80 http.anti_steal_token = no http.secret_key = FastDFS1234567890 tracker_server = 192.168.121.49:22122 tracker_server = 192.168.121.49:22122
Original issue reported on code.google.com by raul.lin...@gmail.com on 22 Feb 2014 at 11:20
raul.lin...@gmail.com
Original issue reported on code.google.com by
raul.lin...@gmail.com
on 22 Feb 2014 at 11:20