The Admin server application is run as a standalone application. All modules used for streams and tasks will be deployed on the YARN cluster that is targeted by the Admin server. configured to be used.
wget http://repo.spring.io/milestone/org/springframework/cloud/dist/spring-cloud-dataflow-admin-yarn-dist/1.0.0.M1/spring-cloud-dataflow-admin-yarn-dist-1.0.0.M1.zip
Unzip the distribution ZIP file and change to the directory containing the deployment files.
cd spring-cloud-dataflow-admin-yarn-1.0.0.M1
localhost
you need to configure them in config/servers.yml
hdfs
remove it using:$ hdfs dfs -rm -R /dataflow
$ ./bin/dataflow-admin-yarn
spring-cloud-dataflow-shell
$ ./bin/dataflow-shell
Create a stream:
dataflow:>stream create --name "ticktock" --definition "time | hdfs --rollover=100" --deploy
List streams:
dataflow:>stream list Stream Name Stream Definition Status ----------- -------------------------- -------- ticktock time | hdfs --rollover=100 deployed
After some time, destroy the stream:
dataflow:>stream destroy --name ticktock
The YARN application is pushed and started automatically during a stream deployment process. Once all streams are destroyed the YARN application will exit.