Upgrade to 22.2.5 fails - "Failed to install package kafka"
search cancel

Upgrade to 22.2.5 fails - "Failed to install package kafka"

book

Article ID: 262388

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

Today we upgrade the productive environment from 21.2.8 to 22.2.5. We have three DR nodes. The Vertica installation fails with the following message:

Started Vertica database ................................................[ OK ]
===============================================================================
Installing Vertica Packages (If Required)
===============================================================================
Package MachineLearning is already installed
Package txtindex is already installed
Package approximate is already installed
Package voltagesecure is already installed
Package logsearch is already installed
Package ComplexTypes is already installed
Package VFunctions is already installed
Installing package kafka...
Failed to install package kafka
Package flextable is already installed
Package AWS is already installed
Package ParquetExport is already installed
Package place is already installed
Installed Vertica Packages (If Required) failed .........................[FAIL]
===============================================================================
Script finished - ./dr_install.sh
===============================================================================

The database is up and running fine again.

How to fix the kafka installation ?

Environment

Release : 22.x

Cause

The problem is that libkafka.so.10.1.1 file is 0 bytes:

/opt/vertica/packages/kafka/lib:
total 3272
-rwxr--r-- 1 dradmin verticadba   79474 Mar 15 08:28 disruptor-3.3.2.jar
-rwxr-xr-x 1 dradmin verticadba   83064 May 25  2022 disruptor-3.4.2.jar
lrwxrwxrwx 1 root    root            18 Mar 15 08:19 libkafka.so -> libkafka.so.10.1.1
-rw-r--r-- 1 dradmin verticadba       0 Mar 15 08:28 libkafka.so.10.1.1
-rwxr-xr-x 1 dradmin verticadba  276756 May 25  2022 log4j-api-2.12.4.jar
-rwxr--r-- 1 dradmin verticadba  135903 Mar 15 08:28 log4j-api-2.3.jar
-rwxr-xr-x 1 dradmin verticadba 1682736 May 25  2022 log4j-core-2.12.4.jar
-rwxr--r-- 1 dradmin verticadba  827024 Mar 15 08:28 log4j-core-2.3.jar
-rwxr-xr-x 1 dradmin verticadba  253371 May 25  2022 vertica-kafka-scheduler.jar

Resolution

Try triggering install again:

admintools -t install_package -d drdata -p 'DB_PASSWORD' --package kafka

if fails , collect:

ls -lR /opt/vertica/packages/kafka

and try manual install:

/opt/vertica/bin/vsql -U dradmin -w DBPASSWORD -f /opt/vertica/packages/kafka/ddl/install.sql

and collect any output.

---------------------------------------------------------------------------------------------------------------------------------

If above does not help and your libkafka.so.10.1.1 is corrupted indeed copy libkafka.so.10.1.1 from another node where it is not corrupted and run installation again.

 

Additional Information

If none of the above solutions resolves the issue the error can be ignored. The kafka package is not used by Performance Management and there are no plans to use on the Data Repository.