Pivotal Knowledge Base

Follow

MADlib install-check is failing

Environment

Product Version
Pivotal Greenplum (GPDB) 4.3.x
OS RHEL 6.x
Madlib 1.9


Symptom

When running install-check after MADlib installation it keeps failing with following error messages in the log.

Error Message:

$ $GPHOME/madlib/bin/madpack install-check -p greenplum
:
TEST CASE RESULT|Module: utilities|text_utilities.sql_in|PASS|Time: 3085 milliseconds
madpack.py : ERROR : Failed executing /tmp/madlib.4NMtGk/utilities/test/path.sql_in.tmp
madpack.py : ERROR : Check the log at /tmp/madlib.4NMtGk/utilities/test/path.sql_in.log
:
$ cat /tmp/madlib.4NMtGk/utilities/test/path.sql_in.log
:
SELECT assert(relative_error(array_agg(count), ARRAY[3, 3]) < 1e-6, 'wrong results in path')
FROM "Path_output";
psql:/tmp/madlib.4NMtGk/utilities/test/path.sql_in.tmp:101: ERROR: Function "dist_norm2(double precision[],double precision[])": Found input arrays of different length
s unexpectedly. (UDF_impl.hpp:210)
:

Cause 

The MADlib install-check script is running based on the pre-defined values prepared for the test purpose. So theoretically when the test data become corrupt/altered for some reason this symptom can happen.

Resolution

Uninstall and Reinstall theMADlib package so correct test scripts/data can be installed.
You can refer following link for uninstalling or reinstall of MADlibMadlib package: How to install or uninstall MADlib

Additional Information

Once MADlib package is installed successfully, you can find all test scripts & data from these directories -

/usr/local/greenplum-db-4.3.8.2/madlib/Versions/1.9/ports/greenplum/modules/*/test/ 

 

Comments

Powered by Zendesk