giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Dongjin (JIRA)" <>
Subject [jira] [Commented] (GIRAPH-882) List of zookeeper connection strings is trimmed by Hadoop counters.
Date Wed, 14 Jan 2015 15:19:35 GMT


Lee Dongjin commented on GIRAPH-882:

For this bug, two facts are related: First, the Zookeeper server list is stored temporarily
in hdfs, in an empty file named with "zkServerList_HOST1 PORT1 HOST2 PORT2 ...". However,
there is a length limitation on hdfs' filename: if it exceeds 255 characters, the tail of
the filename can be trimmed. Second, In order to display the job summary on console, Giraph
stores the Zookeeper server list into GiraphConstants.ZOOKEEPER_SERVER_PORT_COUNTER_GROUP
counter group. But it also has length limitation (by default, 128) - by this reason, it can
be also trimmed. (In short, the bug description is a little bit inaccurate.)

Needless to say, the first one is the heart of this problem. This patch fixes that problem,
by storing given Zookeeper server list in hdfs file's contents, instead of the filename. I
validated this patch using 5 Zookeeper servers, each of whose name was 53 characters. That


With commas, the whole length of Zookeeper server list is 53 * 5 + 4 = 269 > 255.

> List of zookeeper connection strings is trimmed by Hadoop counters.
> -------------------------------------------------------------------
>                 Key: GIRAPH-882
>                 URL:
>             Project: Giraph
>          Issue Type: Bug
>          Components: zookeeper
>    Affects Versions: 1.1.0
>            Reporter: Lukas Nalezenec
> We are running job with quorum of 3 zookeepers. Each serves has got long name (
Connection strings are stored to Hadoop Counters (for example:,,
but since name of counter is limited to ~63 character the connection string is trimmed (,,turin).
> 14/03/18 23:44:41 INFO zookeeper.ZooKeeper: Client
> 14/03/18 23:44:41 INFO zookeeper.ZooKeeper: Initiating client connection,,,turin
> Exception in thread "main" turin
> 	at Method)
> 	at$1.lookupAllHostAddr(
> 	at
> 	at
> 	at
> 	at
> 	at org.apache.zookeeper.client.StaticHostProvider.<init>(
> 	at org.apache.zookeeper.ZooKeeper.<init>(
> 	at org.apache.zookeeper.ZooKeeper.<init>(
> 	at org.apache.giraph.zk.ZooKeeperExt.<init>(
> 	at org.apache.giraph.job.JobProgressTracker.<init>(
> 	at

This message was sent by Atlassian JIRA

View raw message