Installing the PingIntelligence machine learning service
Install the PingIntelligence machine learning (ML) service node.
Before you begin
-
Install Python 3.8.13 in the machine learning service node.
-
Install pip3 and ensure it points to Python 3.8.13.
-
Install Python as the root user and make sure Python3 is pointing to python 3.8.13 (for example, by creating a soft link:
ln -s /usr/local/bin/python3.8 /usr/bin/python3
). -
Make sure management port 8090 is available.
About this task
To install the PingIntelligence machine learning service:
Steps
-
Go to the Ping Identity Product Downloads website.
-
Under PingIntelligence for APIs, click View Now.
-
Click Download under PingIntelligence for APIs.
-
Select a deployment method.
-
After downloading the file, copy the machine learning (ML) service file to the
/opt
directory or any other directory where you want to install the ML service. -
Change the working directory:
Choose from:
-
If you are installing as a root user, change the working directory to
/opt
. -
If you want to install as a non-root user, choose any other location.
-
-
At the command prompt, type the following command to untar the ML service build file:
tar –zxvf <filename>
Example:
tar –zxvf pi-api-mlservice-5.2.tar.gz
-
To verify that the ML service successfully installed, type the
ls
command at the command prompt.Example:
/opt/pingidentity/$ ls pingidentity Ml_service
Result:
This command lists the
pingidentity
directory andml_service
directory. -
Install the requirements:
pip3 install -r /opt/pingidentity/ml_service/lib/requirements.txt
-
To update the
properties.rc
file:-
Add Kafka, ABS, and MongoDB details to the
properties.rc
file inconfig
directory. -
Copy the MongoDB (
mongo.crt
) and Kafka (kafka.crt
) certificates to theml_service
node and provide that path in theproperties.rc
file. -
Set
export mongo_ssl
totrue
.export mongo_ssl="true"
-
Set
export kafka_producer_insync_replicas
to 1.export kafka_producer_insync_replicas=1
-