Note that there are some explanatory texts on larger screens.

plurals
  1. POAmazon ElasticCache Autodiscovery - Client is not initialized
    text
    copied!<p>I am trying to test Amazon's new Memcached client with AutoDiscovery. I have one memcached node which I am able to connect to using XMemcached 1.3.5 as well as a standard SpyMemcached library.</p> <p>I am following the instructions here: <a href="http://docs.amazonwebservices.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html">http://docs.amazonwebservices.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html</a></p> <p>The code is almost identical to the example and is:</p> <pre><code>String configEndpoint = "&lt;server name&gt;.rgcl8z.cfg.use1.cache.amazonaws.com"; Integer clusterPort = 11211; MemcachedClient client = new MemcachedClient(new InetSocketAddress(configEndpoint, clusterPort)); client.set("theKey", 3600, "This is the data value"); </code></pre> <p>I see the following in the logs when I create the connection. The error happens when I try to set a value:</p> <pre><code>2013-01-04 22:05:30.445 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/&lt;ip&gt;:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue 2013-01-04 22:05:32.861 INFO net.spy.memcached.ConfigurationPoller: Starting configuration poller. 2013-01-04 22:05:32.861 INFO net.spy.memcached.ConfigurationPoller: Endpoint to use for configuration access in this poll NodeEndPoint - HostName:&lt;our-server&gt;.rgcl8z.cfg.use1.cache.amazonaws.com IpAddress:&lt;ip&gt; Port:11211 2013-01-04 22:05:32.950 WARN net.spy.memcached.MemcachedClient: Configuration endpoint timed out for config call. Leaving the initialization work to configuration poller. Exception in thread "main" java.lang.IllegalStateException: Client is not initialized at net.spy.memcached.MemcachedClient.checkState(MemcachedClient.java:1623) at net.spy.memcached.MemcachedClient.enqueueOperation(MemcachedClient.java:1617) at net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:474) at net.spy.memcached.MemcachedClient.set(MemcachedClient.java:905) at com.thinknear.venice.initializers.VeniceAssets.main(VeniceAssets.java:227) </code></pre> <ul> <li>I've tried this both locally and on a EC2 instance (I can connect using other libraries to the nodes)</li> <li>I've tried using both 1.4.5 and 1.4.14 Memcached engines</li> <li>I relaxed the security group constraints as well just in case</li> </ul> <p>Any thoughts on why the config endpoint would be timing out?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload