public boolean hasKerberosCredentials(UserGroupInformation ugi) {
    // Allows mocking in testing.
    return ugi.getAuthenticationMethod() == AuthenticationMethod.KERBEROS;
  }
Construct a <code>ClientConfiguration</code> instance.

@param zookeepers
         ZooKeeper hosts
@param instanceName
         Instance name
@param useSasl
         Is SASL enabled
@return A ClientConfiguration instance
accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/HiveAccumuloHelper.java