Hello!
I`m using apache-atlas-2.0.0.
Runnig of the initialization script import-hive.sh is taken a lot of time.

Traying to understand the logic and structure of the project, I researched
the source code and came up to a method:
protected <T> T callAPIWithResource (API api, WebResource resource, Object
requestObject, GenericType <T> responseType)
of the AtlasBaseClient class in the Client.

It seems that the longest time  takes  the 'method()' method
from:
clientResponse = requestBuilder.method (api.getMethod (),
ClientResponse.class, requestObject);
which is a method of the WebResource class from the
 jersey-1.x/jersey-client/src/main/java/com/sun/jersey/api/client/ library

The following logic and values is hidden from me because the
dependency(library) used is in the form of a .jar archive.

I assumed that further is used the Atlas API
(because I see the:
 POST api/atlas/v2/entity/
path in the logs)
and that the 'createOrUpdate (...)' method from the EntityREST class (from
webapp)  is used, but this does not seem to be the case.

Please tell me the further logic and what classes are used after calling
the method 'method ()' (from clientResponse = requestBuilder.method
(api.getMethod (), ClientResponse.class, requestObject);)
from WebResource class from 'jersey-client'.

I will be very grateful for the answer.

Thank you!

Reply via email to