It seems the problem with Internet. please check whether internet is not running on the virtual machine.
please find the Internet is running or not
# ping www.google.com
Also, you can try below command to fix the issue.
# sudo rm -fr /var/cache/yum/*
# sudo yum clean all
# sudo yum install sqoop -y
If still, it is not working then shutdown your virtual machine.
Open VM ware player --->> Go to edit virtual machine setting ---> Network Adapter --->
Check right side.
If it is NAT then make it Bridge
If it is Bridge then make it NAT