(Conditional – Intelligence) Running Analytics on Demand after Recovering Elasticsearch

If the Elasticsearch recovery actions in Step 8 of the EKS upgrade procedure succeeded for the Intelligence pods, complete the following procedure.

Ensuring that Analytics Can Be Run on Demand

  1. Scale up logstash using the following command:

    kubectl -n $(kubectl get ns |awk '/arcsight/ {print $1}') scale statefulset interset-logstash --replicas=<replica count>

    Where you must replace the <replica count> value.

  2. To prepare for running Analytics on Demand, complete the following steps:

    1. To verify that Analytics is not currently running. run the following command on any worker or master node to confirm:

      kubectl -n $(kubectl get namespaces | awk '{print $1}' | grep arcsight-installer) exec -it $(kubectl)
    2. (Conditional) If this command displays a lock file, then Analytics is currently running. Wait for Analytics to complete before proceeding . You can run the command periodically to monitor the state of Analytics.

    3. (Conditional) If the previous Analytics execution failed, check whether the properties in the Intelligence tab are set correctly. If this does not solve the issue, contact Micro Focus Customer Support.
  3. To run Analytics on Demand and make sure that Analytics will resume after the EKS upgrade, complete the following steps:

    1. Launch a terminal session and log in to the NFS node.

    2. Navigate to the following directory:

      cd <NFSVolume>/interset/analytics

    3. (Conditional) Delete the blackhawk_down file, if present. This is an error file and it is generated if the previous Analytics execution fails.

      rm blackhawk_down

    4. When prompted whether you want to delete the file, enter yes.

    5. Execute the following command to delete the latest AnalyticsStarted.mk and AnalyticsCompleted files:

      rm -rf AnalyticsStarted-0-<Today's_date>.mk AnalyticsCompleted-0-<Today's_date>.mk

    6. When prompted whether you want to delete the files, enter yes.

      After 30 seconds of deletion of the files, Analytics is triggered automatically.

    7. (Conditional) If Analytics fails after the EKS upgrade, perform the workarounds.

Applying Workarounds for Two Issues

If you encounter any of the following issues, perform the workarounds.

Issue: If Analytics were to fail after the EKS upgrade, there are two things you can check to remedy it.

Issue: If Analytics fails after the EKS upgrade because the HDFS namenode has entered safe mode.

Workaround: Complete the following steps:

  1. To restart HDFS pods, execute the following command:

    kubectl delete pods -n $(kubectl get ns |awk '/arcsight/ {print $1}')  $(kubectl get pods -n $(kubectl get ns |awk '/arcsight/ {print $1}') -o wide |  grep "hdfs-" | cut -d ' ' -f1)
  2. Execute the following command:

    kubectl exec -n $(kubectl get ns |awk '/arcsight/ {print $1}') hdfs-namenode-0 -c  hdfs-namenode -it bash
    hdfs dfsadmin -safemode leave
  3. Run Analytics on demand.