You can generate a JWT token in Cloudera Data Platform (CDP) and use the token as a
Standard Authorization Bearer token in your client to access a Hive or Impala Virtual
Warehouse.
You can navigate to the Apache Knox UI in CDP, or click in the Hive or Impala Virtual Warehouse tile. From the Virtual Warehouse tile, skip
steps 1 and 2 below, and just click JWT Auth Token Generator
shown in the following screenshot. Apache Knox in CDP appears. Follow steps 3-5 below to generate the token.
To
navigate to the Knox UI instead of using the CDW UI, follow the steps
below:
Log into CDP, and in the Cloudera Management Console, select
Environments > Data Lake.
Scroll down to Services, and click Token Integration.
Apache Knox in CDP appears.
Click Token Generation.
In Token Generation, choose the lifespan of the token, and
click Generate Token.
Copy the JWT token that you generated and use the token on your Hive or Impala
client to sign into your Virtual Warehouse.
For security reasons, after you close Token Generation, you cannot see the
token again.