FeatureVector, 'Not allowed to read resource /projects/xxx/feature-sets/kth'

68 Views Asked by At

I got this error in case of read values from feature vector:

...
/python/test/fvvector/utils.py in read()
    115             features = ["xion/ad02.score", "xxx/kth.*"]
    116             vector = fs.FeatureVector("uc004-vector",features=features)
    117             vector.save()
--> 118             resp = fstore.get_offline_features("uc004-vector")

Exception: 'Not allowed to read resource /projects/xxx/feature-sets/kth'

When I used this code:

import mlrun
import mlrun.feature_store as fs

...
features = ["xion/ad02.score", "xxx/kth.*"]
vector = fs.FeatureVector("uc004-vector",features=features)
vector.save()
resp = fstore.get_offline_features("uc004-vector")
...
1

There are 1 best solutions below

0
JIST On BEST ANSWER

It seems, that you do not have enough privilegies in project 'xxx'. You have to add your account e.g. in my case account name 'jist' to the project 'xxx'.

You have to:

  1. Choose the project, in your case 'xxx' (point 1. in picture)
  2. Choose menu 'Project settings', folder 'Members' (points 2. and 3. in picture)
  3. You need to '+ Invite new members' (in my case account 'jist') to the project and choose relevant privileges (point 4. and 5. in picture)

enter image description here

BTW: It is enough to add role 'Viewer', if you need to only read data from FeatureSet (and use it in Feature Vector). Full description of roles see link