hive —version is supported from 0.13.0 onwards. This is an option to the hive script and not a command that you can run inside cli.
If you are looking to find version via query then you can write a custom UDF similar to https://issues.apache.org/jira/browse/HIVE-12983 Thanks Prasanth On Feb 17, 2016, at 12:44 AM, Divya Gehlot <divya.htco...@gmail.com<mailto:divya.htco...@gmail.com>> wrote: Try this : issue ps -aux ps -aux | grep -i "Hive" On 17 February 2016 at 14:25, Abhishek Dubey <abhishek.du...@xoriant.com<mailto:abhishek.du...@xoriant.com>> wrote: Well thanks for the reply but it didn’t seems to work at my side. <image003.png> To be more precise, I want to determine hive version while hive is running like by querying or something… Thanks & Regards, Abhishek Dubey From: Amrit Jangid [mailto:amrit.jan...@goibibo.com<mailto:amrit.jan...@goibibo.com>] Sent: Wednesday, February 17, 2016 11:43 AM To: user@hive.apache.org<mailto:user@hive.apache.org> Subject: Re: How can we find Hive version from Hive CLI or Hive shell? >>hive --version Hive 0.13.1-cdh5.3.5 On Wed, Feb 17, 2016 at 11:33 AM, Abhishek Dubey <abhishek.du...@xoriant.com<mailto:abhishek.du...@xoriant.com>> wrote: Hi, How can we find Hive version from Hive CLI or Hive shell? Thanks & Regards, Abhishek Dubey -- Regards, Amrit DataPlatform Team [http://s22.postimg.org/7quqs1ypd/5_Million_app_downloads.png][https://s3-ap-southeast-1.amazonaws.com/mdb-ibcdn-com/website_of_the_year_2015.jpg]