NIFI-259: Do not require the State File anymore, since state management is being used now

This commit is contained in:
Mark Payne 2016-01-19 11:03:31 -05:00
parent 16dcf4595c
commit d6a21537c1
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ public class TailFile extends AbstractProcessor {
.description("Specifies the file that should be used for storing state about what data has been ingested so that upon restart NiFi can resume from where it left off")
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.expressionLanguageSupported(false)
.required(true)
.required(false)
.build();
static final PropertyDescriptor START_POSITION = new PropertyDescriptor.Builder()
.name("Initial Start Position")
@ -148,7 +148,7 @@ public class TailFile extends AbstractProcessor {
final List<PropertyDescriptor> properties = new ArrayList<>();
properties.add(FILENAME);
properties.add(ROLLING_FILENAME_PATTERN);
properties.add(new PropertyDescriptor.Builder().fromPropertyDescriptor(STATE_FILE).defaultValue("./conf/state/" + getIdentifier()).build());
properties.add(STATE_FILE);
properties.add(START_POSITION);
properties.add(FILE_LOCATION);
return properties;