0

我正在尝试连接到我在 Azure 云中安装了 couchbase 的虚拟机以及 couchbase 要求打开的所有端口。我能ping通那些机器。假设我在 azure 上的机器有 ip 1.2.3.4:8091。此 VM 有 3 个节点,IP 为 192.168.0.4 192.168.0.5 192.168.0.6

当我在我的 java 运行时参数中提供此 ip 以使用 org.apache.http jar 连接到机器时,它会转换为内部私有 IP 地址,例如:192.168.0.4:8091 但随后出现连接超时错误。为什么?有没有办法在没有超时的情况下使用 java 连接到远程服务器?我是否总是必须在本地集群上部署应用程序?

 Oct 31, 2013 2:25:11 AM com.couchbase.client.CouchbaseProperties setPropertyFile
    FINE: Could not load properties file "cbclient.properties" because: File not found with system classloader.
    Oct 31, 2013 2:25:11 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091/pools
    Oct 31, 2013 2:25:11 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091/pools/default?uuid=29ee39bf4f6daf0de614e85aacf00ac4
    Oct 31, 2013 2:25:11 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091/pools/default/buckets?v=121918534&uuid=29ee39bf4f6daf0de614e85aacf00ac4

在这里,我们可以在底部清楚地看到它连接到存储桶获取 HTTP 数据,但随后显示连接超时。

        Oct 31, 2013 2:25:36 AM net.spy.memcached.MemcachedConnection queueReconnect
WARNING: Closing, and reopening {QA sa=192.168.0.4/192.168.0.4:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1.
Oct 31, 2013 2:25:36 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:36 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 3985ms
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: No selectors ready, interrupted: false
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection attemptReconnects
INFO: Reconnecting {QA sa=192.168.0.6/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 1ms
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: No selectors ready, interrupted: false
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection attemptReconnects
INFO: Reconnecting {QA sa=192.168.0.5/192.168.0.5:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 3ms
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: No selectors ready, interrupted: false
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection attemptReconnects
INFO: Reconnecting {QA sa=192.168.0.4/192.168.0.4:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Done dealing with queue.
Oct 31, 2013 2:25:40 AM net.spy.memcached.MemcachedConnection handleIO
FINE: Selecting with delay of 0ms
30 Seconds:  Load is in progress
Oct 31, 2013 2:25:42 AM com.couchbase.client.ViewConnection createConnections
INFO: Added 192.168.0.6 to connect queue
Oct 31, 2013 2:25:48 AM com.couchbase.client.ViewConnection createConnections
INFO: Added 192.168.0.5 to connect queue
40 Seconds:  Load is in progress
Oct 31, 2013 2:25:52 AM com.couchbase.client.ViewConnection createConnections
INFO: Added 192.168.0.4 to connect queue
Oct 31, 2013 2:25:52 AM com.couchbase.client.CouchbaseClient <init>
INFO: viewmode property isn't defined. Setting viewmode to production mode
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP subscribe
FINE: Subscribing an object for reconfiguration updates com.couchbase.client.CouchbaseClient
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINEST: Channel state changed: [id: 0x1fea8fc0] OPEN


Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINER: Channel state change is not a disconnect. Event value is true and Channel State is OPEN.
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINEST: Channel state changed: [id: 0x1fea8fc0, /192.168.0.10:15658 => /1.2.3.4:8091:8091] BOUND: /192.168.0.10:15658


Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINER: Channel state change is not a disconnect. Event value is /192.168.0.10:15658 and Channel State is BOUND.
Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINEST: Channel state changed: [id: 0x1fea8fc0, /192.168.0.10:15658 => /1.2.3.4:8091:8091] CONNECTED: /1.2.3.4:8091:8091


Oct 31, 2013 2:25:52 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler handleUpstream
FINER: Channel state change is not a disconnect. Event value is /1.2.3.4:8091:8091 and Channel State is CONNECTED.
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: STATUS: 200 OK
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: VERSION: HTTP/1.1
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Cache-Control = no-cache
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Content-Type = application/json; charset=utf-8
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Date = Thu, 31 Oct 2013 09:25:51 GMT
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Pragma = no-cache
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Server = Couchbase Server 2.2.0-821-rel-enterprise
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: HEADER: Transfer-Encoding = chunked
Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
FINER: 

    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
    FINER: CHUNKED CONTENT {
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
    FINER: {"name":"users","bucketType":"membase","authType":"sasl","saslPassword":"","proxyPort":0,"replicaIndex":false,"uri":"/pools/default/buckets/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","streamingUri":"/pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","localRandomKeyUri":"/pools/default/buckets/users/localRandomKey","controllers":{"flush":"/pools/default/buckets/users/controller/doFlush","compactAll":"/pools/default/buckets/users/controller/compactBucket","compactDB":"/pools/default/buckets/default/controller/compactDatabases","purgeDeletes":"/pools/default/buckets/users/controller/unsafePurgeBucket","startRecovery":"/pools/default/buckets/users/controller/startRecovery"},"nodes":[{"couchApiBase":"http://192.168.0.6:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.6","hostname":"192.168.0.6:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.5:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.5","hostname":"192.168.0.5:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.4:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.4","thisNode":true,"hostname":"192.168.0.4:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}}],"stats":{"uri":"/pools/default/buckets/users/stats","directoryURI":"/pools/default/buckets/users/statsDirectory","nodeStatsListURI":"/pools/default/buckets/users/nodes"},"ddocs":{"uri":"/pools/default/buckets/users/ddocs"},"nodeLocator":"vbucket","fastWarmupSettings":false,"autoCompactionSettings":false,"uuid":"3cfaca6ceb99782a74bbc52df98aaba3","vBucketServerMap":{"hashAlgorithm":"CRC","numReplicas":0,"serverList":["192.168.0.4:11210","192.168.0.5:11210","192.168.0.6:11210"],"vBucketMap":[[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]]},"bucketCapabilitiesVer":"","bucketCapabilities":["touch","couchapi"]}
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketUpdateResponseHandler finerLog
    FINER: Chunk length is: 6293
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: Received an update, notifying reconfigurables about a com.couchbase.client.vbucket.config.Bucketcom.couchbase.client.vbucket.config.Bucket@e723c25e
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: It says it is users and it's talking to /pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.6/192.168.0.6:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.BucketMonitor logFiner
    FINER: Getting server list returns this last chunked response:
    {"name":"users","bucketType":"membase","authType":"sasl","saslPassword":"","proxyPort":0,"replicaIndex":false,"uri":"/pools/default/buckets/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","streamingUri":"/pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3","localRandomKeyUri":"/pools/default/buckets/users/localRandomKey","controllers":{"flush":"/pools/default/buckets/users/controller/doFlush","compactAll":"/pools/default/buckets/users/controller/compactBucket","compactDB":"/pools/default/buckets/default/controller/compactDatabases","purgeDeletes":"/pools/default/buckets/users/controller/unsafePurgeBucket","startRecovery":"/pools/default/buckets/users/controller/startRecovery"},"nodes":[{"couchApiBase":"http://192.168.0.6:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.6","hostname":"192.168.0.6:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.5:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.5","hostname":"192.168.0.5:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}},{"couchApiBase":"http://192.168.0.4:8092/users","replication":1.0,"clusterMembership":"active","status":"healthy","otpNode":"ns_1@192.168.0.4","thisNode":true,"hostname":"192.168.0.4:8091","clusterCompatibility":131072,"version":"2.2.0-821-rel-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}}],"stats":{"uri":"/pools/default/buckets/users/stats","directoryURI":"/pools/default/buckets/users/statsDirectory","nodeStatsListURI":"/pools/default/buckets/users/nodes"},"ddocs":{"uri":"/pools/default/buckets/users/ddocs"},"nodeLocator":"vbucket","fastWarmupSettings":false,"autoCompactionSettings":false,"uuid":"3cfaca6ceb99782a74bbc52df98aaba3","vBucketServerMap":{"hashAlgorithm":"CRC","numReplicas":0,"serverList":["192.168.0.4:11210","192.168.0.5:11210","192.168.0.6:11210"],"vBucketMap":[[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[2],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1],[1]]},"bucketCapabilitiesVer":"","bucketCapabilities":["touch","couchapi"]}
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.5/192.168.0.5:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.4/192.168.0.4:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.VBucketNodeLocator updateLocator
    FINE: Received updated configuration with insignificant changes.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: Received an update, notifying reconfigurables about a com.couchbase.client.vbucket.config.Bucketcom.couchbase.client.vbucket.config.Bucket@f727c0e2
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ReconfigurableObserver update
    FINEST: It says it is users and it's talking to /pools/default/bucketsStreaming/users?bucket_uuid=3cfaca6ceb99782a74bbc52df98aaba3
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.6/192.168.0.6:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.5/192.168.0.5:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.CouchbaseConnection reconfigure
    FINE: Node 192.168.0.4/192.168.0.4:11210 will stay in cluster config after reconfiguration.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.VBucketNodeLocator updateLocator
    FINE: Received updated configuration with insignificant changes.
    Oct 31, 2013 2:25:53 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091:8091/pools
    Oct 31, 2013 2:25:55 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091:8091/pools/default?uuid=29ee39bf4f6daf0de614e85aacf00ac4
    Oct 31, 2013 2:25:58 AM com.couchbase.client.vbucket.ConfigurationProviderHTTP readToString
    FINE: Attempting to read configuration from URI: http://1.2.3.4:8091:8091/pools/default/buckets?v=121918534&uuid=29ee39bf4f6daf0de614e85aacf00ac4
    Oct 31, 2013 2:25:58 AM net.spy.memcached.MemcachedConnection createConnections
    INFO: Added {QA sa=/192.168.0.4:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
    Oct 31, 2013 2:25:58 AM net.spy.memcached.MemcachedConnection createConnections
    INFO: Added {QA sa=/192.168.0.5:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
    Oct 31, 2013 2:25:58 AM net.spy.memcached.MemcachedConnection createConnections
    INFO: Added {QA sa=/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
    Oct 31, 2013 2:25:58 AM com.couchbase.client.vbucket.VBucketNodeLocator fillNodesEntries
    FINE: Updating nodesMap in VBucketNodeLocator.
    50 Seconds:  Load is in progress
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    FINE: Selected 1, selected 1 keys
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    FINE: Handling IO for:  sun.nio.ch.SelectionKeyImpl@45f76fc7 (r=false, w=false, c=true, op={QA sa=192.168.0.6/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=8})
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    INFO: Connection state changed for sun.nio.ch.SelectionKeyImpl@45f76fc7
    Oct 31, 2013 2:26:01 AM net.spy.memcached.MemcachedConnection handleIO
    INFO: Reconnecting due to failure to connect to {QA sa=192.168.0.6/192.168.0.6:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
    java.net.ConnectException: Connection timed out: no further information
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:423)
        at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:261)
        at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:288)

我还调整了 org.apache.http.params 的 SO_timeout 和 Connection_timeout 值,但没有任何效果。有没有办法通过远程机器上的 Java 客户端连接到远程服务器?此外,相同的公共 ip 1.2.3.4:8091 适用于浏览器

4

1 回答 1

0

请注意,无法访问端口 11210,而不是 8091。

确保 11210、8091 和 8092 可访问并且主机名已正确映射。

于 2013-10-31T10:37:49.250 回答