manju4ever
manju4ever

Reputation: 325

Spring XD - Unable to undeploy & destroy stream through --cmdfile option

Today i have started automating certain Spring-XD tasks like, stream creation, deployment, and undeploying the same.

For this, all my undeploy and destroy commands sit in one file, but when i run the following

$xd-shell --cmdfile auto_cleanup_14032016_235706.txt

I'm getting the following output:

WARNING: Command 'stream destroy --name ingestion_14032016_235706_<>' was found but is not currently available (type 'help' then ENTER to learn about this command)

But When i run the same command inside the interactive shell xd-shell -- It seems to work fine. :(

Upvotes: 0

Views: 341

Answers (1)

Naresh Jeeri
Naresh Jeeri

Reputation: 11

You will notice this Warning when xd-shell fails to connect to Spring XD admin. Unless specified xd-shell assumes the admin server to be on localhost. Add below statement to the top of your cmdfile.

admin config server http://spring-xd-admin-server:9393

Also provide the credentials to spring xd admin if required.

Upvotes: 1

Related Questions