Skip to Content
0

Cross container access for non-HDI schema

Feb 17, 2017 at 06:38 AM

142

avatar image

Hi,

I am one fresher on XSA. Currently, I want to access non-HDI schema in my HDI container. I created user provided service successfully in our DEV space by command:

xs cups <service-name> -p "{\"host\":\"<host-name>\",\"port\":\"<port-number>\",
\"user\":\"<username>\",\"password\":\"<password>\",\"driver\":\"com.sap.db.jdbc.Driver\",
\"tags\":[\"hana\"] , \"schema\":\"<foreign schema name>\" }"

Then I set my mta.yaml file like below:

_schema-version: '2.0'
ID: ***Upload
version: 0.0.1


modules:
 - name: ***Upload-db
   type: hdb
   path: ***Upload-db
   requires:
    - name: hdi-container
      properties:
        TARGET_CONTAINER: ~{hdi-service-name}
    - name: CrossSchemaService
    
 - name: ***Upload
   type: nodejs
   path: ***Upload
   
resources:
 - name: hdi-container
   type: com.sap.xs.hdi-container
   properties:
     hdi-container-name: ${service-name}
 - name: CrossSchemaService
   type: org.cloudfoundry.existing-service
   parameters:
     service-name: CROSS_SCHEMA_ACCESS_SERVICE

But when I build applicaton, it mentioned error :

[ERROR] HTTP 500 Internal Server Error

And not error log could be found, I just got not idea about the issue.

Could anyone please to help me ?

Thank you very much.

best regards,

Andy Zhang

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers