Wang created KUDU-3167:
--------------------------
Summary: Can not connect to all kudu-master started by docker via
kudu-python
Key: KUDU-3167
URL: https://issues.apache.org/jira/browse/KUDU-3167
Project: Kudu
Issue Type: Bug
Components: client, docker
Reporter: Wang
I start the docker with the reference
[https://kudu.apache.org/docs/quickstart.html#_start_the_quickstart_cluster]
$KUDU_QUICKSTART_IP is 10.44.192.145
$KUDU_QUICKSTART_VERSION is 1.9.0
kudu-python version is 1.2.0
I success to start the docker with 3 masters and 5 tablets.
Master port are 7051, 7151,7251 and 7051 is the leader.
Via kudu-python, I can only connect the leader of kudu-master, but can't
connect to the follower of the kudu-masters.
{code:java}
//代码占位符
In [1]: import kudu
In [2]: client = kudu.connect(host='10.44.192.145', port=7051)
W0714 15:27:28.267447 5576 openssl_util.cc:102] It appears that OpenSSL has
been previously initialized by code outside of Kudu. Please use
kudu::client::DisableOpenSSLInitialization() to avoid potential crashes due to
conflicting initialization.
In [3]: client = kudu.connect(host='10.44.192.145', port=7151)
---------------------------------------------------------------------------
KuduBadStatus Traceback (most recent call last)
<ipython-input-3-eb1398c574f6> in <module>()
----> 1 client = kudu.connect(host='10.44.192.145', port=7151)
/usr/lib64/python2.7/site-packages/kudu/__init__.pyc in connect(host, port,
admin_timeout_ms, rpc_timeout_ms)
90
91 return Client(addresses, admin_timeout_ms=admin_timeout_ms,
---> 92 rpc_timeout_ms=rpc_timeout_ms)
93
94
/usr/lib64/python2.7/site-packages/kudu/client.pyx in
kudu.client.Client.__cinit__()
269 builder.default_rpc_timeout(timeout.delta)
270
--> 271 check_status(builder.Build(&self.client))
272
273 # A convenience
/usr/lib64/python2.7/site-packages/kudu/errors.pyx in kudu.errors.check_status()
60 raise KuduInvalidArgument(c_message)
61 else:
---> 62 raise KuduBadStatus(status.ToString())
KuduBadStatus: Timed out: Could not connect to the cluster:
ConnectToClusterRpc(addrs: 10.44.192.145:7151, num_attempts: 242) passed its
deadline: Not found: no leader found: ConnectToClusterRpc(addrs:
10.44.192.145:7151, num_attempts: 1)
{code}
ksck the cluster
{code:java}
//代码占位符
[root@data-21-dev work]# docker exec -it $(docker ps -aqf "name=kudu-master-1")
/bin/bash
kudu@2b8a6a7d6000:/opt/kudu$ kudu cluster ksck
kudu-master-1:7051,kudu-master-2:7151,kudu-master-3:7251Master Summary
UUID | Address | Status
----------------------------------+--------------------+---------
0fb04588705440cfae885fdf71f8fbf6 | kudu-master-2:7151 | HEALTHY
e201d47a50624b02a8c0d200acc88e57 | kudu-master-1:7051 | HEALTHY
fce36c217e6f4589948954cff3bf7e81 | kudu-master-3:7251 | HEALTHY Flag
| Value | Tags | Master
------------------+-------+--------+-------------------------
use_hybrid_clock | false | hidden | all 3 server(s) checkedTablet Server
Summary
UUID | Address | Status | Location
----------------------------------+--------------------+---------+----------
09b3f4efc69a42348ace15e80189d68c | 10.44.192.145:7150 | HEALTHY | <none>
1d3057335b4149198513c71b75ee6fe8 | 10.44.192.145:7050 | HEALTHY | <none>
7415842c9d5945ceaf227fdc83c26c83 | 10.44.192.145:7450 | HEALTHY | <none>
901baca56619415cb74ec7ee24fd2110 | 10.44.192.145:7350 | HEALTHY | <none>
95f16c59c05f45b2b86fb10b157b1826 | 10.44.192.145:7250 | HEALTHY | <none>Tablet
Server Location Summary
Location | Count
----------+---------
<none> | 5
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)