public void mergeTokenIntoJobConf(JobConf jobConf, Token<?> accumuloToken) throws IOException {
    JobConf accumuloJobConf = new JobConf(jobConf);
    accumuloJobConf.getCredentials().addToken(accumuloToken.getService(), accumuloToken);

    // Merge them together.
    ShimLoader.getHadoopShims().mergeCredentials(jobConf, accumuloJobConf);
  }
Merge the provided <code>Token</code> into the JobConf.

@param jobConf
         JobConf to merge token into
@param accumuloToken
         The Token
@throws IOException
          If the merging fails
accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/HiveAccumuloHelper.java