You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Rohith Sharma K S (JIRA)" <ji...@apache.org> on 2015/10/29 07:21:27 UTC
[jira] [Commented] (SLIDER-954) Slider component container can not
connect to quorum with an error 'NoneType' object has no attribute
'strip'"
[ https://issues.apache.org/jira/browse/SLIDER-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14979910#comment-14979910 ]
Rohith Sharma K S commented on SLIDER-954:
------------------------------------------
I googled for the Error: *'NoneType' object has no attribute 'strip'*.. It look like some issue in kazoo client python implementation which is available in slider-agent.tar.gz.
To confirm, i wrote simple test.py connecting ZK using kazoo modules available in slider-agent.
*test.py :*
{code}
#!/usr/bin/env python
from kazoo.client import KazooClient
zk = KazooClient(hosts='10.18.130.110:54000')
zk.start()
print "Hello, Python!";
{code}
*output :*
{code}
rohith@host-10-18-130-110:~/os> python test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
zk = KazooClient(hosts='10.18.130.110:54000')
File "/home/rohith/os/kazoo/client.py", line 183, in __init__
self.set_hosts(hosts)
File "/home/rohith/os/kazoo/client.py", line 367, in set_hosts
self.hosts, chroot = collect_hosts(hosts, randomize_hosts)
File "/home/rohith/os/kazoo/hosts.py", line 22, in collect_hosts
result.append((host.strip(), port))
AttributeError: 'NoneType' object has no attribute 'strip'
{code}
> Slider component container can not connect to quorum with an error 'NoneType' object has no attribute 'strip'"
> ---------------------------------------------------------------------------------------------------------------
>
> Key: SLIDER-954
> URL: https://issues.apache.org/jira/browse/SLIDER-954
> Project: Slider
> Issue Type: Bug
> Components: agent, app-package
> Affects Versions: Slider 0.81
> Environment: SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1
> Python 2.6
> Hadoop-2.7 branch
> zookeeper-3.4.6
> Reporter: Rohith Sharma K S
> Priority: Critical
>
> When each time slider is launched HBase as long running service, slider agent can not connect to quorum eventhough quorum is running and mannually able to connect to */registry/users/rohith/services/org-apache-slider/t* and obtain the required json info.
> {noformat}
> DEBUG 2015-10-29 10:41:27,804 Registry.py:33 - Trying to connect to ZK...
> ERROR 2015-10-29 10:41:27,805 Registry.py:63 - Could not connect to zk registry at /registry/users/rohith/services/org-apache-slider/t in quorum 10.18.130.110:54000. Error: 'NoneType' object has no attribute 'strip'
> INFO 2015-10-29 10:41:27,805 Registry.py:69 - AM Host = , AM Secured Port = , ping port =
> INFO 2015-10-29 10:41:27,805 main.py:259 - Unable to extract AM host details from ZK, retrying ...
> {noformat}
> As a result of above HMaster and HRegionServer did not launched but in slider.log, it it keep on retrying by launching new containers.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)