Percona Toolkit UDFs

Three Percona Toolkit UDFs that provide faster checksums are provided:

  • fnv_udf
  • fnv1a_udf
  • murmur_udf

Version Specific Information

  • 5.5.8-20.0: Began distributing fnv_udf, fnv1a_udf, and murmur_udf.

Other Information

  • Author / Origin: Baron Schwartz

Installation

Use of the Percona Software Repositories simplifies the installation of Percona Toolkit. Once the repository has been set up on your system, Percona Toolkit can be installed by executing:

$ yum install percona-toolkit

This will place the Percona Toolkit UDFs onto your system. However, they will not yet be installed into the MySQL server. To install one of the UDF``s into the server, execute one of the following commands, depending on which UDF you want to install:

$ mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME ``fnv_udf.so``"
$ mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME ``fnv1a_udf.so``"
$ mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME ``murmur_udf.so``"

Executing each of these commands will install its respective UDF into the server.

Troubleshooting

If you get the error:

ERROR 1126 (HY000): Can't open shared library 'fnv_udf.so' (errno: 22 fnv_udf.so: cannot open shared object file: No such file or directory)

Then you may need to copy the .so file to another location in your system. Try both /lib and /usr/lib. Look at your environment’s $LD_LIBRARY_PATH variable for clues. If none is set, and neither /lib nor /usr/lib works, you may need to set LD_LIBRARY_PATH to /lib or /usr/lib.

Other Reading

Percona Server
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Table Of Contents

Previous topic

Prevent Caching to FlashCache

Next topic

Support for Fake Changes

This Page



© Copyright Percona Ireland Ltd. 2009-2013.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
Created using Sphinx 1.1.3.
This documentation is developed in Launchpad as part of the Percona Server source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
]]>