Appreciations accepted

Vladlen Litvinov, the author: If you have some job offer for me, I'm ready to discuss it. View Vladlen Litvinov's profile on LinkedIn

Password

Wednesday, November 2, 2016

SPSS Analytic Server cannot start after updating of IBM BigInsights to 4.2

When I start SPSS Analytic Server 3.0 after updating of IBM BigInsights to 4.2, the server cannot start with this stacktrace:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.2/services/ANALYTICSERVER/package/scripts/analytics_server.py", line 57, in <module>
    Analytics_Server().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.2/services/ANALYTICSERVER/package/scripts/analytics_server.py", line 35, in start
    self.configure(env)
  File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.2/services/ANALYTICSERVER/package/scripts/analytics_server.py", line 29, in configure
    analytics(type='server')
  File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.2/services/ANALYTICSERVER/package/scripts/analytics.py", line 41, in analytics
    status = port_validation.get_port_status(action = 'http')
  File "/var/lib/ambari-agent/cache/stacks/BigInsights/4.2/services/ANALYTICSERVER/package/scripts/port_validation.py", line 32, in get_port_status
    except socket.error, e:
NameError: global name 'socket' is not defined

Open the file 

/var/lib/ambari-server/resources/stacks/BigInsights/4.2/services/ANALYTICSERVER/package/scripts/port_validation.py

and add the string "import socket" as pointed here:

from resource_management import
import sys
import socket

Save the file and restart ambari-server and ambari-agents (if necessary)

No comments:

Post a Comment