Solved

Definition of environmental variables while developing extractors in the Data Engineer Basics- Interations module

  • 6 February 2023
  • 6 replies
  • 70 views

Userlevel 1
Badge +3

I’m trying to define the following variables for the Data Engineer Basics -Integrations Module to develop a extractor:

 COGNITE_TOKEN_URL, COGNITE_CLIENT_ID, COGNITE_CLIENT_SECRET, COGNITE_BASE_URL, COGNITE_PROJECT.

Can you anyone suggest how do we define them especially Client Secret value? Should these be requested by Cognite Admin?

icon

Best answer by Sofie Haug 7 February 2023, 10:09

View original

6 replies

Userlevel 3
Badge +6

Hi @Philips ! Are you currently doing the Python SDK course?

 

Sofie

Userlevel 1
Badge +3

Hi @Sofie Haug , I’m currently doing the ‘Extractor-utils Library for Cognite Python SDK’ module in ‘DATA ENGINEER BASICS - INTEGRATE’ course.

Userlevel 3
Badge +6

In which CDF project are you trying to use the extractor @Philips ?
 

Userlevel 3
Badge +6

Extractor-utils Library for Cognite Python SDK  is a informative course. The course doesn’t give any project details to deploy the extractor to because we don’t have that setup unfortunately. But if you are a part of a organisation which are costumers or partners of Cognite, you might have access to your own CDF project. You can then use the course, along with documentation, to set up a extractor in your project. As linked in the course, this quickstart guide might be useful: https://cognite-extractor-utils.readthedocs-hosted.com/en/latest/quickstart.html

So the variables you mention can unfortunately not be provided by Cognite Academy. 

 

Sofie, Cognite Academy

 

 

Userlevel 1
Badge +3

Thank you Sofie for your quick response.

I’m not trying to implement the extractor in any CDF Project. Rather I’m going through the course and seeing if I can get the extractor I developed working.

Thanks,

Philips

Userlevel 3
Badge +6

I see @Philips! But to test it you need to specify the variables you mention above. And to get the relevant info you need to have a CDF project as the target (which we unfortunately cannot provide as of now). 
But thank you for taking our courses and let us know! Maybe we’ll be able to have an environment where this can be tested in the future!

Sofie

Reply