- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
i am using apache ignite 2.8.0. this is my code for connecting the Java thin client to server,
ClientConfiguration cfg = new ClientConfiguration().setAddresses("127.0.0.1:10800");
try (IgniteClient igniteClient = Ignition.startClient(cfg)) {
System.out.println("Thin client started.");
final String CACHE_NAME = "sample";
ClientCache<Integer, Object > cache = igniteClient.getOrCreateCache(CACHE_NAME);
cache.put(1,"JP");
System.out.println(cache.get(1));
} //main method
} //class
it prints JP successfully, but after that my thin client is terminated. is there any way to keep alive my thin client? this is my exception..
[21:48:34,942][SEVERE][grid-nio-worker-client-listener-0-#30][ClientListenerProcessor] Failed to process selector key [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-client-listener-0, igniteInstanceName=null, finished=false, heartbeatTs=1583770713875, hashCode=1387062740, interrupted=false, runner=grid-nio-worker-client-listener-0-#30]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, closeSocket=true, outboundMessagesQueueSizeMetric=null, super=GridNioSessionImpl [locAddr=/127.0.0.1:10800, rmtAddr=/127.0.0.1:51279, createTime=1583770713811, closeTime=0, bytesSent=83, bytesRcvd=92, bytesSent0=83, bytesRcvd0=92, sndSchedTime=1583770713875, lastSndTime=1583770713875, lastRcvTime=1583770713875, readsPaused=false, filterChain=FilterChain[filters=[GridNioAsyncNotifyFilter, GridNioCodecFilter [parser=ClientListenerBufferedParser, directMode=false]], accepted=true, markedForClose=false]]]
java.io.IOException: An existing connection was forcibly closed by the remote host
at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:358)
at org.apache.ignite.internal.util.nio.GridNioServer$ByteBufferNioClientWorker.processRead(GridNioServer.java:1162)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:2449)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:2216)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1857)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
at java.base/java.lang.Thread.run(Thread.java:834)
最佳答案
您是否尝试过以下代码:
ClientConfiguration cfg = new ClientConfiguration().setAddresses("127.0.0.1:10800");
IgniteClient igniteClient = Ignition.startClient(cfg);
System.out.println("Thin client started.");
final String CACHE_NAME = "sample";
ClientCache<Integer, Object > cache = igniteClient.getOrCreateCache(CACHE_NAME);
cache.put(1,"JP");
System.out.println(cache.get(1));
//here your client will be alive
关于java - Apache Ignite - Java 瘦客户端终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60598588/
这就是我的代码中的全部内容。这只是使用 Ignite 的典型方式: Ignite ignite = Ignition.ignite(); 我看到的错误信息是: WARNING: An illegal
有时我会不断地对节点进行分段。它发生在一个大约有 40 个节点的集群中——它一次只发生在一个节点上。有几次它发生在正在进行一些繁重的 GC 工作时。另一方面,我看到类似的繁重的 GC 工作正在进行并且
我有 2 个服务器节点和一个客户端节点。我正在使用 TopologyValidator 来验证拓扑。 如果任何服务器节点离开集群,我想禁用所有操作。 TopologyValidator 仅禁用更新操作
我有一个用例,我必须为我的 ignite 集群支持多个持久性存储,例如缓存 A1 应该从数据库 db1 启动,缓存 B1 应该从数据库 db2 启动。这可以完成吗?。在 ignite 配置 XML 中
我对分区模式下的 Ignite Cache 有几个问题 1)当Ignite集群中的节点发生故障时,如果故障节点是某个 key 的主节点,那么该节点的备份是否会成为新的主节点? 2) 故障节点中的备份副
在页面 https://ignite.apache.org/features/datagrid.html我找到了以下信息: “与其他键值存储不同,Ignite 使用可插入哈希算法确定数据局部性。每个客
可以说我下面有一个对象Employee,它存储在ignite缓存中。 Employee{ int id; String name; List marksInorder;/
我正在尝试使用基于集群的执行器服务。 //获取启用集群的执行器服务。ExecutorService exec = ignite.executorService(); 是否有办法设置执行程序服务池中的线
我在 Linux 节点上的 Kubernetes 集群中运行 Apache Ignite .Net。 最近我将我的 ignite 2.8.1 集群更新到了 v2.9。更新后,作为集群一部分的某些服务无
我有一个 3 节点的 ignite 集群和 1 个创建缓存的客户端。在开发和测试过程中,我不得不多次停止集群或中断缓存构建,现在整个系统都崩溃了。只有一个节点启动,其他节点崩溃。客户端被阻止,它什么也
任何人都可以告诉我 Apache Ignite 中是否有可用的基于时间的触发策略? 我有一个对象在那个日期(时间戳)过期时有过期日期我想更新这个值并在缓存中覆盖它是否可以在 Apache Ignite
用例 这是我们正在研究的拓扑 Server - 1 --> marketData缓存,保存不同的股价信息 客户端 - 1 --> 将数据推送到缓存 Client - 2 --> 持续查询,监听市场上的
我无法理解 Apache Ignite 和 GridGain 平台之间的区别。他们是平等的?或者 GridGain 是 Apache Ignite 实现的标准? 最佳答案 来自 the website
我们正在探索在我们的项目中使用 Apache Ignite。基本上,我们有几十个 oracle 表。我们想将每个表加载到 Ignite Cache 中,然后在这些缓存之间进行连接。我们的表之间有很多连
我无法在 Quarkus 中找到 Apache Ignite 依赖项,也无法在任何有人将 Apache Ignite 与 Quarkus 结合使用的示例中找到它。如果 Quarkus 当前不支持 Ap
有没有人试过使用 IgniteSet 或类似的数据结构在连续查询上设置远程过滤器?没有太多关于 IgniteSet 如何工作的文档,因此这个问题。基本上我的用例如下: 我有一个使用 Ignite 实现
我在 Ignite 中创建了一个缓存,现在我正尝试通过 ignite 包中提供的 sqlline 查询它。在文档中,它只讨论创建表、索引、查询这些表等。但没有讨论以这种方式通过 ignite.getO
我编写了下面的代码来从 JSON 文件中读取数据并将其推送到 Ignite 分布式缓存中,这段代码工作正常,但是,创建“ContainerAgg”类的要求对我来说是个问题。我们的数据结构不是预定义的,
我正在寻找一种方法将具有给定键的所有实体从一个 Ignite 缓存复制到另一个。虽然不断获取新数据,但每 x 秒所有数据都必须复制到缓存 2。我尝试使用 EntryProcessor,因为我只需要就地
我们使用的是 Apache Ignite 2.9.0。它是一个带有 Zookeeper 发现的 5 节点集群。 我们通过从 Intellij 执行 DDL 语句在 Ignite 中创建表。然后我们可以
我是一名优秀的程序员,十分优秀!