Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker Apache Ignite缓存操作失败_Docker_Redis_Ignite_Jedis - Fatal编程技术网

Docker Apache Ignite缓存操作失败

Docker Apache Ignite缓存操作失败,docker,redis,ignite,jedis,Docker,Redis,Ignite,Jedis,我使用docker hub中的docker映像安装了Ignite。Ignite服务器节点正确启动。但我在尝试更新缓存时遇到以下异常: [SEVERE][rest-#35%null%][GridCacheCommandHandler] Failed to execute cache command: GridRestCacheRequest [cacheName=null, cacheFlags=0, ttl=null, super=GridRestRequest [destId=null, cl

我使用docker hub中的docker映像安装了Ignite。Ignite服务器节点正确启动。但我在尝试更新缓存时遇到以下异常:

[SEVERE][rest-#35%null%][GridCacheCommandHandler] Failed to execute cache command: GridRestCacheRequest [cacheName=null, cacheFlags=0, ttl=null, super=GridRestRequest [destId=null, clientId=466b7ff5-c303-452e-8f2d-97d59c753de5, addr=null, cmd=CACHE_PUT]]
class org.apache.ignite.IgniteCheckedException: Failed to find cache for given cache name (null for default cache): null
        at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.localCache(GridCacheCommandHandler.java:754)
        at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.executeCommand(GridCacheCommandHandler.java:677)
        at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.handleAsync(GridCacheCommandHandler.java:468)
        at org.apache.ignite.internal.processors.rest.GridRestProcessor.handleRequest(GridRestProcessor.java:264)
        at org.apache.ignite.internal.processors.rest.GridRestProcessor.access$100(GridRestProcessor.java:87)
        at org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:153)
        at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
[14:57:18,637][SEVERE][rest-#35%null%][GridRestProcessor] Failed to handle request: CACHE_PUT
class org.apache.ignite.IgniteCheckedException: Failed to find cache for given cache name (null for default cache): null
        at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.localCache(GridCacheCommandHandler.java:754)
        at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.executeCommand(GridCacheCommandHandler.java:677)
        at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.handleAsync(GridCacheCommandHandler.java:468)
        at org.apache.ignite.internal.processors.rest.GridRestProcessor.handleRequest(GridRestProcessor.java:264)
        at org.apache.ignite.internal.processors.rest.GridRestProcessor.access$100(GridRestProcessor.java:87)
        at org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:153)
        at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

有什么问题吗?

在开始使用缓存之前,应该先创建缓存。使用getOrCreateCache方法

您可以在中阅读更多信息,并检查使用缓存api的情况


此外,ApacheIgnite中有许多用于各种用例的示例。

您应该在开始使用缓存之前创建缓存。使用getOrCreateCache方法

您可以在中阅读更多信息,并检查使用缓存api的情况


此外,apache ignite中有许多用于各种用例的示例。

非常感谢您的回复,我只是有点困惑,我从Linux的docker映像启动ignite服务器。我尝试了你的建议,但我不确定目前运行的ignite服务器是否是ApacheIgniteDocker映像。请您解释一下我如何为apache ignite docker映像创建Linux缓存,谢谢您。当您遇到此异常时,您是如何尝试访问缓存的?ignite部分兼容Redis,允许用户使用任何与Redis兼容的客户端从apache ignite缓存中存储和检索分布式数据。我使用的是jedis(redis客户端)但当我在linux上使用redis cli时,甚至当我使用jedis(redis客户端)时,我都遇到了这个异常有一个java程序非常感谢您的回复,我只是有点困惑,我从Linux的docker映像启动ignite服务器。我尝试了您的建议,它可以工作,但我不确定ignite服务器目前运行的是否是Apache ignite docker映像。您能解释一下如何创建缓存表单吗apache ignite docker映像的用户体验提前谢谢。当您遇到此异常时,您是如何尝试访问缓存的?ignite部分兼容Redis,使用户能够使用任何与Redis兼容的客户端从apache ignite缓存中存储和检索分布式数据。我使用的是jedis(Redis客户端)但当我在linux上使用redis cli时,甚至当我在java程序中使用jedis(redis客户端)时,我都遇到了这个例外