Overview
Yetus is added to Hive to run checks on the new patches. 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 the rules.
The following Yetus plugins are used in Hive personality:
asflicense - Rat check to validate ASF headers
author - Check that there is not @author tag in the files
checkstyle - Runs checkstyle
findbugs - Runs findbugs
compile - Shows compile warnings
javadoc - Shows javadoc problems
whitespace - Checks for extra whitespaces
xml - Checks xml validity
Findbugs
To run findbugs checks, findbugs binary should be installed on the computer, and the FINDBUGS_HOME environment variable should be set. This can be downloaded here.
export FINDBUGS_HOME=~/dev/upstream/findbugs-3.0.1/
Running Yetus
The checks could be run with the following command:
./dev-support/test-patch.sh ~/Downloads/HIVE-16345.2.patch