/** * Sets the connector information needed to communicate with Accumulo in this job. * * <p> * Stores the password in a file in HDFS and pulls that into the Distributed Cache in an attempt * to be more secure than storing it in the Configuration. * * @param job * the Hadoop job instance to be configured * @param principal * a valid Accumulo user name (user must have Table.CREATE permission if * {@link #setCreateTables(JobConf, boolean)} is set to true) * @param tokenFile * the path to the password file * @since 1.6.0 */ public static void setConnectorInfo(JobConf job, String principal, String tokenFile) throws AccumuloSecurityException { OutputConfigurator.setConnectorInfo(CLASS, job, principal, tokenFile); }
/** * Sets the connector information needed to communicate with Accumulo in this job. * * <p> * Stores the password in a file in HDFS and pulls that into the Distributed Cache in an attempt * to be more secure than storing it in the Configuration. * * @param job * the Hadoop job instance to be configured * @param principal * a valid Accumulo user name (user must have Table.CREATE permission if * {@link #setCreateTables(Job, boolean)} is set to true) * @param tokenFile * the path to the token file * @since 1.6.0 */ public static void setConnectorInfo(Job job, String principal, String tokenFile) throws AccumuloSecurityException { OutputConfigurator.setConnectorInfo(CLASS, job.getConfiguration(), principal, tokenFile); }
OutputConfigurator.setConnectorInfo(AccumuloOutputFormat.class, conf, params.getAccumuloUserName(), token); } catch (IllegalStateException e) {
OutputConfigurator.setConnectorInfo(AccumuloOutputFormat.class, jobConf, connectionParams.getAccumuloUserName(), token); } catch (IllegalStateException e) {
OutputConfigurator.setConnectorInfo(CLASS, job.getConfiguration(), principal, token);
OutputConfigurator.setConnectorInfo(CLASS, job, principal, token);
OutputConfigurator.setConnectorInfo(CLASS, job.getConfiguration(), principal, token);
OutputConfigurator.setConnectorInfo(CLASS, job, principal, token);