Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atlasclient.base - Missing attr EntityUniqueAttribute: searchParameters #120

Open
Nyna71 opened this issue Oct 25, 2019 · 3 comments
Open

Comments

@Nyna71
Copy link

Nyna71 commented Oct 25, 2019

In release 0.1.7, atlasclient.models.EntityUniqueAttribute raised an exception when reading the entity attribute.

atlasclient 0.1.7

>>> from det.app import ATLAS_CLIENT
>>> ATLAS_CLIENT
<atlasclient.client.Atlas object at 0x7fc59d6a1cf8>
>>> hdfs_path_EUA = ATLAS_CLIENT.entity_unique_attribute('hdfs_path', qualifiedName='/data/d0/raw')
>>> hdfs_path_EUA
<atlasclient.models.EntityUniqueAttribute object at 0x7fc59ddc73c8>
>>> hdfs_path_EUA.entity
ERROR - 2019-10-25 11:29:26,595 - atlasclient.base - Missing attr EntityUniqueAttribute: searchParameters
{'typeName': 'hdfs_path', 'attributes': {'owner': None, 'modifiedTime': 0, 'isFile': False, 'numberOfReplicas': 0, 'qualifiedName': '/data/d0/raw', 'description': None, 'extendedAttributes': None, 'path': '/data/d0/raw', 'posixPermissions': None, 'createTime': 0, 'fileSize': 0, 'clusterName': None, 'name': '/data/d0/raw', 'isSymlink': False, 'group': None}, 'guid': '64a26e16-e38a-4099-af7e-971449772aa4', 'status': 'ACTIVE', 'createdBy': 'id996713', 'updatedBy': 'id996713', 'createTime': 1549534063925, 'updateTime': 1564477384239, 'version': 0, 'classifications': []}

atlasclient 0.1.3

>>> from det.app import ATLAS_CLIENT
>>> ATLAS_CLIENT
<atlasclient.client.Atlas object at 0x7ff21e42f5f8>
>>> hdfs_path_EUA = ATLAS_CLIENT.entity_unique_attribute('hdfs_path', qualifiedName='/data/d0/raw')
>>> hdfs_path_EUA
<atlasclient.models.EntityUniqueAttribute object at 0x7ff22d777358>
>>> hdfs_path_EUA.entity
{'typeName': 'hdfs_path', 'attributes': {'owner': None, 'modifiedTime': 0, 'isFile': False, 'numberOfReplicas': 0, 'qualifiedName': '/data/d0/raw', 'description': None, 'extendedAttributes': None, 'path': '/data/d0/raw', 'posixPermissions': None, 'createTime': 0, 'fileSize': 0, 'clusterName': None, 'name': '/data/d0/raw', 'isSymlink': False, 'group': None}, 'guid': '64a26e16-e38a-4099-af7e-971449772aa4', 'status': 'ACTIVE', 'createdBy': 'id996713', 'updatedBy': 'id996713', 'createTime': 1549534063925, 'updateTime': 1564477384239, 'version': 0, 'classifications': []}
@Nyna71
Copy link
Author

Nyna71 commented Oct 27, 2019

I tested atlasclient 0.1.7 and 1.0.0 together with a bare Atlas server 2.0.0 running in a docker container, and in such configuration the atlasclient.base does not raise the Missing attr EntityUniqueAttribute exception.

This means atlasclient>0.1.3 is not compatible with Atlas 0.8.0 which is delivered with our HDP 2.6.5 cluster.

@jpoullet2000
Copy link
Owner

Do you have the same issue with pyatlasclient which is a fork of atlasclient and more actively updated?

@AlessandroLollo
Copy link

I have the same issue running pyatlasclient 1.0.3 with Atlas server 2.0.0.
It works fine when running the code on my local Mac with Python 3.6.4 (Anaconda distro), while it is logging the following messages when running in a docker container (python:3.6-alpine):
f2020-03-19 10:28:43,731 - Missing attr EntityUniqueAttribute: searchParameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants