Skip to Content
0
Former Member
Jul 10, 2017 at 03:17 PM

Data replication from hybris commerce to hybris marketing not working

313 Views

Hello experts,

we have problems at setting up the data hub connection to hybris marketing with hybris commerce (6.3). We want to send customer data (e.g. orders, carts, and so on) to hybis marketing - i followed the documentation. So far, we:

  1. Setup the datahub - working fine

  2. Setup the required extensions for hybris commerce (y2ysync, ymkt extensions, prodreco, etc)

  3. Added the necessary local.properties config lines

Now we are trying to send the data with the y2ysync cronjobs (e.g. ymktToDatahubjob or ymktOrdersToDatahubjob) to the datahub to publish the data to hybris marketing. When i am starting the job, the hybris commerce server logs that there are changes, starts the jobs and sends a requests to the DATAHUB-URL:

     INFO   | jvm 1    | main    | 2017/07/10 14:51:05.209 | INFO  [hybrisHTTP28] [IP] [PerformY2YSyncJob] starting perform Y2YSyncJob action for : ymktToDatahubJob
     ...
 INFO  [TaskExecutor-master-324-Task [8796423193526]] [DataHubRequestCreator] Sending request to datahub @ http://<IP>:9001/datahubadapter with sync execution id: 00000FH3


The DATAHUB-URL http://:9001/datahubadapter is configured in the y2ysync jobs. I am not sure if thats the right URL, but its accessable and if i am trying to change the URL to http://:8080/datahub-webapp-6.3.0.2-RC1/v1/ the console will log "http error 404". So i am pretty sure that the datahubadapter URL is correct, can anyone confirm that?

If i am using the backoffice/datahub perspective and console log of the datahub, i don't get any logs when i am perform the job from the y2ysync perspective. So i am assuming, that something has to be wrong at the step y2ysync job to datahub or properties file. The job finishes successfully. Composing/publishing the ymarketing feeds/pools works fine, but does not fetch any data.

Probably someone can help me with that kind of issue, i am not sure if its a configuration problem or i am missing something else (e.g. extensions, local.properties settings)?

I am not sure if my local.properties file from datahub is correct/complete, so heres the file:

 datahub.security.basic.admin.user=admin
 datahub.security.basic.admin.password=nimda
 datahub.security.basic.read_only.user=user
 datahub.security.basic.read_only.password=nimda
 
 datahubadapter.datahuboutbound.url=http://<IP>:8080/datahub-webapp-6.3.0.2-RC1/v1
 datahub.encryption.key.path=/usr/sap/tomcat/encryptionkey.txt
 datahub.server.url=http://<IP>:8080/datahub-webapp-6.3.0.2-RC1/v1
 datahub.extension.userName=admin
 datahub.extension.password=nimda
     
 ymkt-target.exportURL=http://<IP>:44300/sap/opu/odata/sap/CUAN_IMPORT_SRV/Update
 ymkt-target.orders.exportURL=http://<IP>:44300/sap/opu/odata/sap/CUAN_BUSINESS_DOCUMENT_IMP_SRV/
 ymkt-target.userName=YMAR_TECHNICALUSER
 ymkt-target.password=YMAR_TECHNICALUSER
 ymkt-target.navPrefix=https://<IP>:9002/yacceleratorstorefront/p/
 ymkt-target.navSuffix=?site=electronics
 ymkt-target.urlPrefix=https://<IP>:9002