7

Deploy to HANA Cloud fails with missing build plugin after migration from HANA S...

 1 year ago
source link: https://answers.sap.com/questions/13868729/deploy-to-hana-cloud-fails-after-migration-from-ha.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
5 hours ago

Deploy to HANA Cloud fails with missing build plugin after migration from HANA Service

41 Views Last edit 5 hours ago 3 rev

Hi community,

we migrated from HANA Service to HANA Cloud Service following the migration guide. However when we start the deployment of our database schema it fails.

$ node node_modules/@sap/hdi-deploy/deploy.js --root ./dist/db --auto-undeploy  --exit
(...)
   modified files: [
     "src/.hdiconfig",
     "src/gen/.hdiconfig"
   ]
(...)
   Deploying the configuration file "src/.hdiconfig"... 
   Warning: Could not find a configured library that contains the "com.sap.hana.di.virtualfunctionpackage.hadoop" build plugin [8211539]
     at "src/.hdiconfig" (0:0)
(...)
   Adding "src/gen/myModel.MyTable.hdbtable" for deploy... ok  (0s 0ms)
   Error: Could not find the "com.sap.hana.di.cds" build plugin [8210501]
   Error: Preparing... failed [8211602]
(...)

During the migration the wizard informed us that "com.sap.di.cds" build plugin is not supported with HANA Cloud (see here). However we could proceed with migration.

image.png

After the migration was successful we adjusted our coding to run with HANA Cloud. We changed the following files.
.cdsrc.json
Added:

"hana": {
   "deploy-format": "hdbtable",
   "syntax": "hdi"
}

Changed:

"requires": {
     "db": {
         "kind": "hana-cloud"
     }
}

As various HDI build plugins are deprecated like mentioned above (see here) I removed them from the .hdiconfig file. Among other things also the "com.sap.hana.di.cds" build plugin - which let's the deployment fail.

We are using the following versions of cds npm packages:

@sap/cds: 6.7.0
@sap/cds-compiler: 3.8.2
@sap/cds-dk: 6.7.0
@sap/hdi-deploy: 4.2.3
hdb: 0.19.0

Which steps do we need to take to deploy our schema to HANA Cloud? It seems that the deployer wants to delete/undeploy the outdated .hdbcds files and needs the "com.sap.hana.di.cds" build plugin for doing this. But this plugin is deprecated in HANA Cloud and therefore no longer exists, so the deployment fails.

Kind regards,
Johannes


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK