Welcome, @yashkumar!
Next time you post a code snippet, use triple backticks (```) to surround them, they’ll look much nicer.
Does this answer help you? "Transport Client Authentication no longer supported" error when deploying cluster with security plugin enabled - #9 by pablo