GemFire

GemfireXD - PreparedStatement setArray for String(VARCHAR) array not working

混江龙づ霸主 提交于 2019-12-13 07:19:32
问题 I have some JDBC code as follows where I am using gemfireXD as DB . I am trying to parallelize the execution of a procedure on a list of inputs. The size of the list I am passing as the parameter to the procedure is not fixed and it is determined after the execution of the query in the code below. This list can be too big in size. Code: private static void executeProc (Connection cxn) throws SQLException { Statement stmt = null; try { stmt = cxn.createStatement(); stmt.execute("select

Spring Data GemFire: CustomExpiry Examples

自作多情 提交于 2019-12-13 04:43:05
问题 I am using Pivotal GemFire 9.1.1 and Spring Data GemFire 2.0.7.RELEASE. I have a token that will be stored in a GemFire Region with a String Key and a Map<String,String> Value. The expiration of the token (i.e. entry in the GemFire Region) should be dynamic dependent on a few business scenarios. I could find Pivotal GemFire documentation for CustomExpiry whereas I could not find any proper example/documentation on Spring Data GemFire ( <gfe:custom-entry-ttl> ). Please share if there is a

Spring Data GemFire and loose coupling between GemFire cache with Spring Boot on startup

扶醉桌前 提交于 2019-12-13 03:39:00
问题 We have a GemFire cluster with 2 Locators and 2 Cache nodes. Our Spring Boot services will connect to the GemFire cluster as clients and will have client Regions. We are using Spring Data GemFire to bootstrap client Regions with GemFire XML config and properties. When the GemFire cluster is down the Spring Boot service is not coming up as it couldn’t satisfy the GemFire Region dependencies ( UnsatisfiedDependecyException ) . Is there a way to loosely couple Spring Boot startup and GemFire? In

gemfire custom serialization not helping

夙愿已清 提交于 2019-12-12 10:16:16
问题 I am using gemfire as my cache. The cache heap size is well above 100GB. I discovered that when we put data in gemfire cache from client, it would serialize the data and send to server, and on server the data is stored in serialized form. Problems: When i try to execute any on-server function call, it then starts deserializing the data and it is really time consuming, some times it takes more than an hour just to iterate through the objects in cache. (Number of objects are close to 6 million)

GemfireXD - How to parallelize data processing for bigger data size

我与影子孤独终老i 提交于 2019-12-12 05:48:59
问题 I am using JDBC to process some data where I am using gemfireXD as DB which is an InMemory data grid and a NewSQL solution. Step1 - I am getting all distinct keys(field1) from a table (Table1) Statement stmt = conn.createStatement(); stmt.execute("select distinct field1 from Table1"); ResultSet rs = stmt.getResultSet(); List<String> keyList = new ArrayList<String> (); while (rs.next()) { keyList.add(rs.getString("field1")); } Step2 - I am querying the same table for each key from the above

How to use GFSH to connect peer to peer environment?

♀尐吖头ヾ 提交于 2019-12-12 01:37:25
问题 I am running Gemfire HTTP session management model within my application as P2P on a WebSphere. I can see the session logs on WAS. However, I could not find a way to connect it through gfsh from my desktop. I am using default seeting without locator. I would like to monitor Gemfire status, how? Cache_Peer.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Caching 6.5//EN" "http://www.gemstone.com/dtd/cache6_6.dtd"> <cache> <!--

Session attributes missing intermittently - Spring Session + Pivotal GemFire Implementation

我与影子孤独终老i 提交于 2019-12-11 20:39:15
问题 Facing a strange issue for sometime in Spring Session with Pivotal GemFire integration. We have multiple HTTP requests, which eventually does set/get of session attributes in a varying order based on several conditions. At some given point... (T) session.getAttribute(sessionKeyN); // (T) is template object ... is retrieving null . We have cross verified that no session.setAttribute(..) is invoked in between two session.getAttribute(..) calls out of which one misses the object. We enabled

How gemfire does colocation of replicated and partitioned regions

那年仲夏 提交于 2019-12-11 20:14:32
问题 1.How does gemfire internally performs co location? 2.How does co-location works with partitioned regions? 3.How does co-location works with replicated regions? 4.How does co-location works with replicated region and partitioned region together? 3.Is custom partitioning required to do co-location? 回答1: Gemfire's co-location capability exists so that you can ensure that your transactions will happen at memory speed rather than network speed. For instance, say you want to partition your problem

Invalid Http Response for Gemfire?

*爱你&永不变心* 提交于 2019-12-11 18:53:47
问题 enter image description here public class GemfireTest extends SecurityManager { public static void main(String[] args) throws NameResolutionException, TypeMismatchException, QueryInvocationTargetException, FunctionDomainException, IOException { System.setProperty("gemfire.locators", "localhost[8091]"); Properties properties = new Properties(); ServerLauncher serverLauncher = new ServerLauncher.Builder() .setMemberName("server1") .setServerPort(40404) .set("start-locator", "localhost[8091]")

Not able to retrieve saved objects from GemFire backed session

我是研究僧i 提交于 2019-12-11 15:55:27
问题 I was using the GemFire session store to save and retrieve objects. session.getAttribute(sessionKey) and session.setAttribute(sessionKey, value) But, sometimes after saving, when I am trying to retrieve the object on the next button click, I am getting a null value back. Other times it retrieves the value correctly. The session id used for saving and retrieving are same, but still null is retrieved. Is there any way I could see the data that is saved in Geode's Pulse Monitoring application