Step 0: Java 1.7 or above needs to be installed.
Step1 : Download spring xd from below URL Spring XD
Step2: Unzip and place it where ever you desire. I have placed it in F:\softwares\spring-xd
Step3: Open command Prompt- go to F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\xd\bin
Step 4: F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\xd\bin>xd-singlenode
Spring xd will start and displayed as mentioned below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp1InTZ7BDpDOayKrotTIyDA0DAxa18BqXs9ljJoWdrIw-RJ7JUk4qoQETM5fFm8YJUB1RsVJZ_XoYH0uSlju9F4soZ0JGsfiWGjfxoY8WxJIusoKCnxPwTdFiCOeDe4dk0V4H8aifNNU/s1600-rw/springxd_singlenode.png)
Step 5: Now open another command prompt to run the shell- F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\shell\bin
Step 6: F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\shell\bin>xd-shell
Shell prompt will display as mentioned below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgivhPaOqP6OwTM05Le6VGyec58iSBEh7P6pp0-8UD6BbFoQWgzs73G18FsbaTVWt2CeVX-Ribo1DOX7f-byKyFihnNvEjLsX0wDRDWbP3wzWLzHBDh8w8I4D5BRwH4AIy6ZsAMm7ugJZ4/s1600-rw/springxd_shellprompt.png)
Step 7: Now we need to create twitter steam inside Spring XD shell
Step 8: We need to create an application inside twitter to get the consumer key and consumer secret key
Step 9: I have created application with name- twitterspringxdsearchjava.
Step 10: Please login into - https://apps.twitter.com and create your own application
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOPY2lVFZh2VWcXuPfNHXLFcca7RTGRthV7uAR4xSdpn1Cqewo_MqwRSQa-eFqOVbXv5SxKhbOgCShZ4Gl19N14y_5Xxwhq_AofDysW6tBmQGq_K6c2zfm8W4aG4_1PA2VHIM7uBEUUI/s1600-rw/springxd_twitter.png)
Step 11: Now we need to run the created twitter application using spring xd shell
Step 12: output file created inside - F:\tmp\xd\output with name – twitterspringxdsearchjava.out
Step 13: This file will have live tweets data in json format.
Thank you very much for for viewing this post
Step1 : Download spring xd from below URL Spring XD
Step2: Unzip and place it where ever you desire. I have placed it in F:\softwares\spring-xd
Step3: Open command Prompt- go to F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\xd\bin
Step 4: F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\xd\bin>xd-singlenode
Spring xd will start and displayed as mentioned below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp1InTZ7BDpDOayKrotTIyDA0DAxa18BqXs9ljJoWdrIw-RJ7JUk4qoQETM5fFm8YJUB1RsVJZ_XoYH0uSlju9F4soZ0JGsfiWGjfxoY8WxJIusoKCnxPwTdFiCOeDe4dk0V4H8aifNNU/s1600-rw/springxd_singlenode.png)
Step 5: Now open another command prompt to run the shell- F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\shell\bin
Step 6: F:\softwares\spring-xd\spring-xd-1.2.0.RELEASE\shell\bin>xd-shell
Shell prompt will display as mentioned below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgivhPaOqP6OwTM05Le6VGyec58iSBEh7P6pp0-8UD6BbFoQWgzs73G18FsbaTVWt2CeVX-Ribo1DOX7f-byKyFihnNvEjLsX0wDRDWbP3wzWLzHBDh8w8I4D5BRwH4AIy6ZsAMm7ugJZ4/s1600-rw/springxd_shellprompt.png)
Step 7: Now we need to create twitter steam inside Spring XD shell
Step 8: We need to create an application inside twitter to get the consumer key and consumer secret key
Step 9: I have created application with name- twitterspringxdsearchjava.
Step 10: Please login into - https://apps.twitter.com and create your own application
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOPY2lVFZh2VWcXuPfNHXLFcca7RTGRthV7uAR4xSdpn1Cqewo_MqwRSQa-eFqOVbXv5SxKhbOgCShZ4Gl19N14y_5Xxwhq_AofDysW6tBmQGq_K6c2zfm8W4aG4_1PA2VHIM7uBEUUI/s1600-rw/springxd_twitter.png)
Step 11: Now we need to run the created twitter application using spring xd shell
Xd> stream create --name twitterspringxdsearchjava --definition "twittersearch --consumerKey=a7gswQzBwemVLW4rFBz3kERXd --consumerSecret=YewRBaxRZUXP85xsOUnquFCTOcESTy5QCTmfQSUfsuk7S1bCVv --query='java' | file" –deploy
Step 12: output file created inside - F:\tmp\xd\output with name – twitterspringxdsearchjava.out
Step 13: This file will have live tweets data in json format.
Thank you very much for for viewing this post