GithubHelp home page GithubHelp logo

Comments (7)

ranishwetha avatar ranishwetha commented on April 28, 2024 1

Thanks John, for the quick response!

We are planning to automate the creation of region, using Spring Annotation API's. Can you please recommend some other alternative, for the current version?

from spring-boot-data-geode.

jxblum avatar jxblum commented on April 28, 2024

This is because the current version of PCC does not support SDG @EnableClusterConfiguration push functionality just yet.

The Pivotal GemFire team broke the underlying API on which SDG's @EnableClusterConfiguration feature is based.

As you can see from the GEODE ticket, the underlying Apache Geode API was restored in version 1.5.0. Apache Geode 1.5.0 corresponds to Pivotal GemFire 9.4. PCC currently is based on Pivotal GemFire 9.3. Therefore, PCC must be upgraded to Pivotal GemFire 9.4+ in order for the SD Cluster Configuration push functionality to be useable.

from spring-boot-data-geode.

jxblum avatar jxblum commented on April 28, 2024

Note, you can try this with a standalone installation by starting some GemFire/Geode servers using Gfsh and then connecting a Spring (Boot) Data Geode/GemFire cache client application annotated with @EnableClusterConfiguration. You will see that the Regions (and optionally, Indexes) are pushed to the servers. You must be running Apache Geode 1.5.0 or later and/or Pivotal GemFire 9.4 or later.

from spring-boot-data-geode.

ranishwetha avatar ranishwetha commented on April 28, 2024

Hi John,

I am using GemFire 9.1.1, through Pivotal Cloud Cache 1.3.1 and ran into below error -

strong text2018-11-17T16:30:35.279-05:00 [APP/PROC/WEB/0] [OUT] org.springframework.context.ApplicationContextException: Failed to start bean 'gemfireClusterSchemaObjectInitializer'; nested exception is org.apache.geode.cache.client.ServerOperationException: remote server on ac62ca98-0ec5-4a30-606b-1cc9(:8:loner):47710:a6159523:: The function is not registered for function id CreateRegionFunction 2018-11-17T16:30:35.279-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:184)

Finally I ran into this post - #15

Is there any other annotation I can use with Spring Boot 2+ which can help me with GemFire Region creation, dynamically?

Thanks!

from spring-boot-data-geode.

jxblum avatar jxblum commented on April 28, 2024

Hi @ranishwetha - Unfortunately, when using PCC 1.3.1 (or even PCC 1.4 or earlier), there is no workaround given my earlier comment above.

We are currently looking into making this work smoothly for the current version of PCC, 1.5. Presently, there is an HTTP authentication error on the client when pushing the cluster configuration (e.g. Region definitions, etc). As you may already be aware, the cluster config is pushed from the client to the server using the embedded Management REST API, which is served from GemFire/Geode using an embedded HTTP server (currently, Jetty). This HTTP client connect used to push the config will also need to authenticate.

See GH Issue #16.

Also, would it be possible for you to upgrade to PCC 1.5? I am very sorry you hit this problem.

I will report back when I have resolution on Issue #16.

Regards,
@jxblum

from spring-boot-data-geode.

jxblum avatar jxblum commented on April 28, 2024

There is no other Spring Annotation or API to help in this case.

Unfortunately, the only option would be to create a Gfsh shell script and run that, manually. Equally unfortunate, is anytime you add an additional client Region, you have to remember to update your shell script to create that Region on the server.

I will think on this more and get back to you.

from spring-boot-data-geode.

ranishwetha avatar ranishwetha commented on April 28, 2024

Great! Thanks John!

from spring-boot-data-geode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.