cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create custom datahub feed and pool

rahulverma94
Active Participant
0 Likes
1,149

Hi Experts,

Need help on creating custom data hub feed and pool and use them instead of GLOBAL pool. Can anyone help with steps to achieve this?

Regards Rahul

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Not sure you tried with above configuration or not, have a look for the image for Named pool strategy. you can get the details in logs as soon as you see the relevant info in logs.

019-07-15 17:47:41,967 [INFO] [c.h.d.s.e.AutoComposeEventListener] Initiate composition for pool: ADVISEMENTS

I hope this will help you !!!

rahulverma94
Active Participant
0 Likes

Looks like you are not understanding my question.

Anyways I have got the solution. Thanks for your time!!

Former Member
0 Likes

this is a jar in datahub war file called sapcoreconfiguration-18.11.0-RC4.jar

WRT to that u can configure named pool using these properties sapcoreconfiguration.autocompose.pools=ADVISEMENTS sapcoreconfiguration.autopublish.targetsystemsbypools=ADVISEMENTS.HybrisAdvisementsCoreInstallation

where HybrisAdvisementsCoreInstallation is TargetSystem Name.

make sure to install sapcoreconfiguration-18.11.0-RC4.jar in .m2 repository.

Let me know if you still stuck !!

Thanks

rahulverma94
Active Participant
0 Likes

You have specified as how we can use a pool for auto composition or publication.

How would you ensure that a particular raw item would enter a particular feed instead of DEFAULT_FEED(OOTB) and that the composition and publication happen on a custom pool instead of GLOBAL(OOTB) pool?

Former Member
0 Likes

This is described in the following documentation:

https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/1905/en-US/7fb6aeca9c034be89e36af85fec4...

See the following statements in the document above:

You create a new data feed using either the Data Hub API, the Backoffice Data Hub Cockpit, or a REST call.

Also:

With the named pool strategy, all loaded data enters the pool specified by a poolingCondition parameter. This parameter contains the pool name. If the poolingCondition refers to a data pool that does not exist such as, LongSleeveShirts, a new data pool by that name is automatically created.

And:

Data Hub does not support manual creation of pools through the API. On start-up, Data Hub, by default, creates the GLOBAL pool. The NAMED_POOL strategy creates pools during the initial load of data using the data feed configuration.

rahulverma94
Active Participant
0 Likes

Thanks for the info! How do I configure different custom feed or pool for different item types?? By default they all use DEFAULT_FEED and GLOBAL pool.

Slava
Product and Topic Expert
Product and Topic Expert
0 Likes

Generally feeds and pools are not associated or restricted to certain types. Any type can be loaded into any pool. Feed is specified in the URL of the data load request. Pool is derived from the feed. You can play with the Quick Upload in the DataHub Backoffice and see that you can pick any feed for uploading your data.

As to iDocs - they may be special because they are handled by a separate extension providing its own REST endpoint to handle them. I don't know the URL format of that endpoint and whether feed can be specified in there. They may enforce certain business rules about how items of different types are placed into pools. I wonder if team Griffin could answer this question.