Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.



New Contributor

I have to invoke multiple Endpoints with the "same" user credentials (basic auth). I don't want to hard code "Basic Auth UserName" and "Basic Auth Password" for each InvokeHttp header. Is there a easy way to maintain it in one place and pass it to each InvokeHttp processor?


Re: InvokeHTTP

Rising Star

@MKS_AWS You can do this in different ways.
Possibility 1
Create variables in VariableRegistry containing your authorization data.
Possibility 2
Create a parameter list and define your authorization data there in parameters.

In both ways you can use the variables or parameters inside the InvokeHTTP.

Here an example with variables.



If you get your authorization data from a database table just set them into attributes and use them in the same way.

Don't have an account?
Coming from Hortonworks? Activate your account here