this.context.getCredentials().addAll(this.credentials); Credentials currentUserCreds = getCredentialsFromUGI(UserGroupInformation.getCurrentUser()); if (currentUserCreds != null) { this.context.getCredentials().addAll(currentUserCreds);
@Override public Credentials getCredentials() { return delegate.getCredentials(); }
/** * Initializes the RecordReader and starts execution of the task. */ @Override public void initialize(InputSplit split, TaskAttemptContext context) throws IOException { RecordServiceInputSplit rsSplit = (RecordServiceInputSplit) split; try { reader_ = new RecordReaderCore(context.getConfiguration(), context.getCredentials(), rsSplit.getTaskInfo()); } catch (RecordServiceException e) { throw new IOException("Failed to execute task.", e); } context_ = context; }
this.context.getCredentials().addAll(this.credentials); Credentials currentUserCreds = getCredentialsFromUGI(UserGroupInformation.getCurrentUser()); if (currentUserCreds != null) { this.context.getCredentials().addAll(currentUserCreds);
this.context.getCredentials().addAll(this.credentials); Credentials currentUserCreds = getCredentialsFromUGI(UserGroupInformation.getCurrentUser()); if (currentUserCreds != null) { this.context.getCredentials().addAll(currentUserCreds);
this.context.getCredentials().addAll(this.credentials); Credentials currentUserCreds = getCredentialsFromUGI(UserGroupInformation.getCurrentUser()); if (currentUserCreds != null) { this.context.getCredentials().addAll(currentUserCreds);