Apache Knox
- Last Updated: August 6, 2018
- 2 minute read
- DataDirect Connectors
- JDBC
- Apache Hive 6.0
- Documentation
Apache Knox is a gateway system that serves as a reverse proxy to Apache Hadoop clusters. The primary advantage of Apache Knox is that it provides a single point of authentication that simplifies security policy enforcement while providing REST API access to a clustered environment. The driver supports connecting to Apache Knox in a similar manner to a standard connection using HTTP mode.
To connect to an Apache Knox gateway:
The following example demonstrates a basic connection URL to Apache Knox using Kerberos and SSL data encryption.
jdbc:datadirect:hive://knoxserver1:8443;DatabaseName=hivedb1;
AuthenticationMethod=kerberos;EncryptionMethod=ssl;
HTTPPath=gateway/default/hive;
ServicePrincipalName=knox/knoxserver1.example.com@EXAMPLE.COM;TransportMode=http;
Note: If you receive an
HTTP/1.1 500 Server Error message when attempting
to insert a large number of rows with Apache Knox, reduce the value specified for the
ArrayInsertSize property until the operation succeeds.