Git Product home page Git Product logo

experience-platform-dsw-reference's Introduction

experience-platform-dsw-reference's People

Contributors

aleksandargrujic90 avatar aleksandarme avatar arunpuppala avatar bigdataexplorer avatar grujicaleksandar avatar ichasepucks avatar jasonhightower avatar jonaphin avatar kratika2210 avatar marina-bjegovic avatar mpaunovi avatar nemanjal94 avatar rjrussell77 avatar sathyarun18 avatar shivmpatel12 avatar tatsuyawi avatar trieloff avatar tumulurik avatar vidit-bhatia avatar vijeth8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

experience-platform-dsw-reference's Issues

Authentication Error in Datasaver.py

Expected Behaviour

I have been playing with the Recipe Builder using the sample codes and the sample Retail Sale dataset, at the jupyterLab on UI: https://platform.adobe.com/notebooks/jupyterLab

The sample datasaver code is expected to work without issues.
Here is the datasaver code:

`def save(config_properties, prediction):

 client_context = get_client_context(config_properties)

 dataset = Dataset(client_context).get_by_id(config_properties['scoringResultsDataSetId'])

 dataset_writer = DatasetWriter(client_context, dataset)

 dataset_writer.write(prediction, file_format='json')

 print("Datasaver Finish")`

Actual Behaviour

The line below throws an error
dataset_writer.write(prediction, file_format='json')

The error is around authentication:

Traceback (most recent call last):
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/ml_runtime_python-0.33.3-py3.5.egg/main.py", line 3, in
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/ml_runtime_python-0.33.3-py3.5.egg/ml/runtime/python/main/main.py", line 63, in main
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/ml_runtime_python-0.33.3-py3.5.egg/ml/runtime/python/core/scoringInitiator.py", line 76, in initiate
File "dist/recipe-0.0.1-py3.5.egg/recipe/datasaver.py", line 20, in save
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/dataset_writer.py", line 60, in write
file_path = common_adl_access._get_file_path(self.dataset_id(), batch_id, view_id)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/common_adl_client.py", line 55, in _get_file_path
self._data_set_info(data_set_id)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/common_adl_client.py", line 52, in _data_set_info
self._adl_client = ADLClient(data_set_id, credential_response)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/platform_sdk/adl.py", line 45, in init
resource = ADL_RESOURCE_URL)
File "/opt/conda/envs/usermlruntimepython/lib/python3.5/site-packages/azure/datalake/store/lib.py", line 118, in auth
raise ValueError("tenant_id and client_id must be supplied for authentication")
ValueError: tenant_id and client_id must be supplied for authentication

Then I generated the tenantId via following curl command

curl -X GET \ https://platform.adobe.io/data/foundation/schemaregistry/stats \ -H 'Authorization: [Bearer token] \ -H 'x-api-key: [api key]' \ -H 'x-gw-ims-org-id: [imsorg id]'

I added it to the scoring configuration file scoring.conf with key "tenantId", but still the error persists and I don't know how to pass client_id for authentication.

Reproduce Scenario (including but not limited to)

Click "Score" button on the Recipe Builder page. The error shows up when saving the prediction to the scoring output.

Steps to Reproduce

Click "Score" button on the Recipe Builder page.

Platform and Version

Adobe Experience Platform/Data Science Workspace.

Sample Code that illustrates the problem

Logs taken while reproducing problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.