mirror of https://github.com/apache/nifi.git
NIFI-8235 UnsupportedOpertationException in PutAccumuloRecord
This commit is contained in:
parent
042b34cb43
commit
6801704846
|
@ -70,7 +70,6 @@ import javax.xml.bind.DatatypeConverter;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -264,7 +263,7 @@ public class PutAccumuloRecord extends BaseAccumuloProcessor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Collection<ValidationResult> customValidate(ValidationContext validationContext) {
|
protected Collection<ValidationResult> customValidate(ValidationContext validationContext) {
|
||||||
Collection<ValidationResult> set = Collections.emptySet();
|
Collection<ValidationResult> set = new HashSet<>();
|
||||||
if (!validationContext.getProperty(COLUMN_FAMILY).isSet() && !validationContext.getProperty(COLUMN_FAMILY_FIELD).isSet())
|
if (!validationContext.getProperty(COLUMN_FAMILY).isSet() && !validationContext.getProperty(COLUMN_FAMILY_FIELD).isSet())
|
||||||
set.add(new ValidationResult.Builder().explanation("Column Family OR Column family field name must be defined").build());
|
set.add(new ValidationResult.Builder().explanation("Column Family OR Column family field name must be defined").build());
|
||||||
else if (validationContext.getProperty(COLUMN_FAMILY).isSet() && validationContext.getProperty(COLUMN_FAMILY_FIELD).isSet())
|
else if (validationContext.getProperty(COLUMN_FAMILY).isSet() && validationContext.getProperty(COLUMN_FAMILY_FIELD).isSet())
|
||||||
|
|
Loading…
Reference in New Issue