Configuring the SQL AI Assistant in CDW
After you prepare the supported platforms (Azure, AWS, or OpenAI), configure the SQL AI Assistant in Cloudera Data Warehouse (CDW) to use it in Hue.
- Secure
- (Recommended) In this approach, you use Kubernetes' method of distributing
secrets. You first encode the credentials and then add the encoded bit as a
data item in the
HUE_AI_INTERFACE_TOKEN
property. The token becomes available in the Hue pod as an environment variable. - Open
- You specify the token value in the hue-safety-valve field. In this approach the credentials are saved in a configuration file in plain text format.
- Use a base64 encoding tool to convert your token to a base-64 representation by
running the following
command:
echo -n '[***MY-TOKEN***]' | base64
Replace [***MY-TOKEN***] with the token value you want to encode.
- Open a terminal session and run the following command to add the encoded
secret:
kubectl edit secret hue-secret -n [***HUE-POD***]
Replace [***HUE-POD***] with the Hue pod in which you want to add the secret.
- Add the encoded value returned for your token in the
HUE_AI_INTERFACE_TOKEN
property as follows:... apiVersion: v1 data: HADOOP_CREDSTORE_PASSWORD: [***ENCODED-HADOOP-CREDSTORE-PASSWORD***] HUE_AI_INTERFACE_TOKEN: [***ENCODED-TOKEN-VALUE***] kind: Secret
Replace [***ENCODED-TOKEN-VALUE***] with the actual encoded value returned for your token.