My cluster continually repeats the following message on the node that houses cldb:

ERROR com.mapr.baseutils.zookeeper.ZKDataRetrieval init [main]: Could not connect to ZK within: 30000 ms. Check if ZK connection defined correctly: localhost:5181. No data from ZK will be returned.

My zk cluster isn't on this node. In conf/cldb.conf, the host locations for the zk cluster is correct. It appears that this must be hard-coded some place else?

I believe this message started occurring after upgrading to the trial for the M5 edition of MapR.

asked 07 Mar '12, 13:15

jacques's gravatar image

jacques
199343742
accept rate: 33%


Could you see which maprcli command it is related to? Some commands get its information from Zookeeper and in order to do this you either supply -zkconnect parameter on the input, or it gets it from CLDB, and if none of the above succeed it tries to use localhost. If you see it after cluster restart - it probably happens while CLDB is not fully functioning yet, once cluster stabilizes it should not happen anymore.

link

answered 07 Mar '12, 15:19

yufeldman's gravatar image

yufeldman ♦♦
1.9k27
accept rate: 25%

It looks like it is coming from com.mapr.cliframework.driver.CLIMainDriver dump zkinfo -json.

(09 Mar '12, 11:13) jacques

This CLI command is not widely used - may be just for support collect. For some reason looks like CLDB passes to the command ZK address as localhost:5181, as I don't see we default to "localhost" anywhere else. Could you double check parameter: "cldb.zookeeper.servers" on CLDB node(s)?

(09 Mar '12, 12:06) yufeldman ♦♦

@jacuqes: do you have any update on this issue ? I am trying to reproduce the problem and have also looked at the code. There is no hard-coding. As yufeldman wrote above, the value of Zookeeper string is retrieved from CLDB. If the attempt fails, then the command line argument is looked up. If no argument is specified, the CLI command fails, but should not return localhost:5181. The value of ZkConnect string is logged. Could you grep for "ZKConnect" in /opt/mapr/logs/maprcli-root-*.log and copy it here ? For e.g., in my run, I see

$: cd /opt/mapr/logs/ $: grep -ri zkconnect * maprcli-root-0.log:2012-03-30 14:01:15,881 INFO com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils [main]: ZKConnect: xx.xx.xx.151:5181,xx.xx.xx.152:5181,xx.xx.xx.156:5181

(02 Apr '12, 18:47) Prasad B
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×17
×3

Asked: 07 Mar '12, 13:15

Seen: 730 times

Last updated: 02 Apr '12, 18:51

powered by OSQA