A problem with gstream to collect video stream in real time

I use a Raspberry PI camera(IMX 219) to capture the video. Now I want to save the real time video stream in the jetson nano with gstream.The command is following:
gst-launch-1.0 v4l2src ! video/x-raw-yuv,format=(fourcc)YUY2,width=320,height=240 ! xvimagesink

But the error information as following:
0.10-style raw video caps are being created. Should be video/x-raw,format=(string)… now.
WARNING:erroneous pipeline:could not parse caps “video/x-raw-yuv,format=(fourcc)YUY2,width=320,height=240”

how to solve it?
Thanks ver much!