0

Simple example from app starters:

stream create --name fileTofile --definition 'file --file.directory=./input | file --file.directory=./output'

Next, when deploying the stream I would like to override "file.directory" property for one of the apps. How do I distinguish between the apps with the same name, when passing a deployment property?

rideronthestorm
  • 727
  • 1
  • 13
  • 32

1 Answers1

1

You need to use label for the app when creating the stream in the DSL. and refer the label when specifying the deployment properties.

In your case, stream create --name fileTofile --definition 'source-file:file --file.directory=./input | sink-file:file --file.directory=./output'

You can refer the doc for it here

Ilayaperumal Gopinathan
  • 4,099
  • 1
  • 13
  • 12
  • And what will happen in my case , if I just pass app.file.file.directory deployment property (when I have 2 apps with the same name and no labels)? – rideronthestorm Jun 08 '17 at 11:55
  • You will get an error as: dataflow:>stream create --name fileTofile --definition 'file --file.directory=./input | file --file.directory=./output' Command failed org.springframework.cloud.dataflow.rest.client.DataFlowClientException: 143E:(pos 32): label 'file' should be unique but app 'file' (at position 0) and app 'file' (at position 1) both use it file --file.directory=./input | file --file.directory=./output ^ – Ilayaperumal Gopinathan Jun 09 '17 at 17:38