Skip to Content
0
Oct 05, 2020 at 01:39 PM

Unable to execute graph with two different tags in Python Operator of SAP DI 3.0

196 Views Last edit Nov 02, 2020 at 01:41 PM 3 rev

Hi,

We have to execute ML model in DI Graph which involves libraries like xgboost,fbprophet,sklearn,statsmodels etc.

We have successfully created two docker files using below code:

1. Installing xgboost/fbprophet as tag "fbprophet-xgboost"

FROM $com.sap.sles.ml.python USER 1972:1972

WORKDIR /home/vflow

ENV HOME=/home/vflow

RUN python3.6 -m pip --no-cache-dir install --user --upgrade pip

RUN python3.6 -m pip --no-cache-dir install --user fbprophet

RUN python3.6 -m pip --no-cache-dir install --user xgboost

2. Installing other ML libraries as tag "CP"

FROM §/com.sap.datahub.linuxx86_64/sles:15.0-sap-020

RUN groupadd -g 1972 vflow && useradd -g 1972 -u 1972 -m vflow

USER 1972:1972 WORKDIR /home/vflow

ENV HOME=/home/vflow # Install Cognitive Pricing Libraries

RUN python3.6 -m pip --no-cache-dir install 'future' --user

RUN python3.6 -m pip --no-cache-dir install 'sklearn' --user

RUN python3.6 -m pip --no-cache-dir install 'statsmodels' --user

Now we are using tags in python operator to execute graph .

But graph is Failing with above error message.

Please note when we run individually xgboost/fbprophet then graph is running fine but when we use it with other libraries its giving error.

Need help to resolve this issue.

Attachments

di-tag-error.jpg (65.2 kB)