Using kafka version is 2.7.0 for application
Try with kafka stream maven version 2.2.1 kafka stream in pom.xml , then stream is started and getting expected output.