Registering the Application in Spring Cloud Data Flow Server
In this article, I will be listing out the steps to register the application in Spring Cloud Data flow server dashboard.
- Start the Spring Cloud Data Flow Server and login to the dashboard.
Note : Prerequisites for this would be Spring Cloud Data Flow Server Jar should be downloaded locally and have been installed. Look into my other article for the steps to download and set up the Spring Cloud Data Flow Server(https://medium.com/@sharathchandra93/spring-cloud-data-flow-server-installation-2a0d1d240aaa)
Command to start the Spring Cloud Data Flow Server:
Run the below command:
java -jar spring-cloud-dataflow-server-2.4.2.RELEASE.jar
Above images show that the Spring Cloud data flow server has been started successfully. Launch the below url and you would be navigated to the dashboard screen http://localhost:9393/dashboard/#/apps
2. Click on the Add Applications link.
3. Select the Register one or more applications radio button in the screen.
4. Enter the Name of the Application and choose the type of the application and enter the URI for the app that you would want to register in Spring Cloud Data Flow.
For Example:
5. Click on the Register the Application button.
6. App would be successfully registered and will be shown on the dashboard.
7. Once the Application is successfully registered, next step would be creating the task and launching it from the dashboard. Click on the Tasks link on the dashboard screen.
8. Click on the Create task link.
9. Drag the Spring Cloud task box into the flow chart, associate start and stop tags as shown below.
10. Click on the Create Task. You will be navigated to the Confirm task page as show below.
11. Task has been successfully created.
12. Click on the Play button on the tasks page to launch the particular task.
13. You can provide the Arguments and Parameters that are needed for the task to run successfully. For the Current application that has been registered we don’t need any Arguments or Parameters to run it as it is a Simple Application.
14. Click on the SpringCloudTask hyperlink and you will be navigated to the task summary page.
15. Click on the Executions tab on the task summary page to view the details about the execution of the task.
16. Click on the Execution ID hyperlink and you will be navigated to the page that shows you the logs of the application and also shows you if you there were any parameters that are passed to run the task.
17. The other way to check the logs of the task application is to get the path of the logs from the Spring Cloud Data Flow Server Console
This concludes the steps to register the application in the Spring Cloud Data Flow Dashboard and launch it successfully.
For this article, I have created a sample Hello World Spring Cloud Task Application and used it as an example.