Configure Knox for IPv4-only operation

In dual-stack environments, you must configure Knox to operate in IPv4-only mode to prevent unintended IPv6 communication.

By default, Knox uses IPv4. However, in dual-stack environments where both IPv4 and IPv6 are available, Knox may inadvertently use IPv6 for communication.

  1. In Cloudera Manager, select the Knox service.
  2. Go to the Configuration tab.
  3. Search for the Additional Gateway Java Options property.
  4. Enter the following parameter:
    -Djava.net.preferIPv4Stack=true
  5. Click the Save Changes(CTRL+S) button.
  6. Restart the Knox service.

Knox now operates in IPv4-only mode and uses IPv4 addresses for all network communication.