Performance Analyzer Failed to execute operation: Bad message

I am using ELK 7.10.2 OSS version.
I want to install performance analyzer plugin. I am following steps from below document.

I am running following command according to the step

sudo sh /usr/share/elasticsearch/plugins/opendistro-performance-analyzer/install/rpm/postinst 1

It gives error as below :

# Enabling opendistro performance analyzer to start and stop along with elasticsearch.service
Failed to execute operation: Bad message

Does anyone know how to solve it ?