Overview
Yetus is added to Hive in release 3.0.0 to run checks on the new patches. See: See HIVE-15051.
There are several rules already defined by the community, but most of them are not enforced.
Yetus helps us by checking these rules only for newly introduced errors, so no full refactoring is required for change, but the new code should conform to the rules.
The following Yetus plugins are used in the Hive personality:
asflicense - Rat asflicense – Rat check to validate ASF headers.
author – Checks author - Check that there is not @author tag in the files.
checkstyle - checkstyle – Runs checkstyle.
findbugs - findbugs – Runs findbugs.
compile - compile – Shows compile warnings.
javadoc - javadoc – Shows javadoc problems.
whitespace - whitespace – Checks for extra whitespaces.
xml - xml – Checks xml validity.
Findbugs
To run findbugs checks, the findbugs binary should be installed on the computer , and the FINDBUGS_HOME environment variable should be set. This The binary can be downloaded here.
Code Block |
---|
export FINDBUGS_HOME=~/dev/upstream/findbugs-3.0.1/ |
...