Previous version of Hive, (In 0.12.x or under version) that only CDH hive have a getLog function.
So, jshs2 are to detect exists getLog function using by hiveType.
Recently version of Hive, (In 1.0.0 or higher version) that have alternative method FetchResults. That is change option fetchType 0 to 1, have same effect getLog.
jshs2 will changed,
maybe hive version is higher 1.0.0, that change getLog using FetchResult and fetchType.
Previous version of Hive, (In 0.12.x or under version) that only CDH hive have a getLog function.
So, jshs2 are to detect exists getLog function using by hiveType.
Recently version of Hive, (In 1.0.0 or higher version) that have alternative method FetchResults. That is change option fetchType 0 to 1, have same effect getLog.
jshs2 will changed,
maybe hive version is higher 1.0.0, that change getLog using FetchResult and fetchType.