You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Yetus is added to Hive in release 3.0.0 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 to the rules.

The following Yetus plugins are used in the Hive personality:

  • asflicense  Rat check to validate ASF headers.

  • author  Checks 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, the findbugs binary should be installed on the computer and the FINDBUGS_HOME environment variable should be set. The binary 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
  • No labels