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

InvokeHTTP

InvokeHTTP

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?

1 REPLY 1
Highlighted

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.

HWC_InvokeHTTP_Auth.png

 

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