HDP Data Services
Also available as:
PDF

Security for WebHCat

WebHCat currently supports two types of security:

  • Default security (without additional authentication)

  • Authentication by using Kerberos

Example: HTTP GET :table

The following example demonstrates how to specify the user.name parameter in an HTTP GET request:

% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/my_table?user.name=ctdean'

Example: HTTP POST :table

The following example demonstrates how to specify the user.name parameter in an HTTP POST request

% curl -s -d user.name=ctdean \
       -d rename=test_table_2 \ 
       'http://localhost:50111/templeton/v1/ddl/database/default/table/
          test_table'

Security Error

If the user.name parameter is not supplied when required, the following security error is returned:

{ 
   "error": "No user found. Missing user.name parameter."
}