AnsweredAssumed Answered

Problem with CLdb connection

Question asked by lubard on Jan 8, 2012
Latest reply on Jan 16, 2012 by yufeldman
Hi,
i have installed CentOS 6 with a single node installtion, but i getting an CLDB ERROR, in the /maprcli-root-0.log :

<pre>
"Header: hostName: mapr, Time Zone: Israel Standard Time, processName: MapRCLI, processId: 8221, MapR Build Version: 1.2.0.12140GA
2012-01-08 08:25:33,448 INFO  com.mapr.cliframework.driver.CLIMainDriver [main]: [node, list, -columns, hostname, -noheader]
2012-01-08 08:25:33,464 INFO  com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils [main]: init
2012-01-08 08:25:33,489 ERROR com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils getDataForParticularCLDB [main]: CLDB Host: 192.168.0.214, CLDB IP: 7222 is Not ready to serve requests. Trying another one
2012-01-08 08:25:33,493 INFO  com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils [main]: Bad CLDB credentials removed: CLDB Host: 192.168.0.214, CLDB IP: 7222
2012-01-08 08:25:33,493 ERROR com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils getZkConnect [main]: No data is received from any cldb
2012-01-08 08:25:33,493 ERROR com.mapr.cli.ServerCommands getServicesInfo [main]: zkConnectString is null/empty. Cannot proceed further.
2012-01-08 08:25:33,509 INFO  com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils [main]: init
2012-01-08 08:25:33,513 ERROR com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils getDataForParticularCLDB [main]: CLDB Host: 192.168.0.214, CLDB IP: 7222 is Not ready to serve requests. Trying another one
2012-01-08 08:25:33,515 INFO  com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils [main]: Bad CLDB credentials removed: CLDB Host: 192.168.0.214, CLDB IP: 7222
2012-01-08 08:25:33,515 ERROR com.mapr.cli.ServerCommands sendRequest [main]: RPC Request to list Nodes failed. No data returned
2012-01-08 08:25:33,517 INFO  com.mapr.cliframework.driver.CLIMainDriver [main]: ERROR (10009) -  Couldn't connect to the CLDB service. Check if at least one CLDB is running."

</pre>
CLBD is running i checked the using jps:
"
<code>
8895 WardenMain
9756 CLDB
9820 Jps
26952 QuorumPeerMain
9808 CLIMainDriver"
</code>

Selinux is disabled also Iptables is disabled, configured the /etc/hosts file .

the CLDB log:
<code>
"Header: hostName: mapr, Time Zone: Israel Standard Time, processName: cldb, processId: 9671, MapR Build Version: 1.2.0.12140GA
2012-01-08 08:40:48,390 INFO  com.mapr.fs.cldb.CLDB [main]: Initializing CLDB
2012-01-08 08:40:48,390 INFO  com.mapr.fs.cldb.CLDB [main]: Loading properties file : /opt/mapr/conf/cldb.conf
2012-01-08 08:40:48,481 INFO  com.mapr.fs.cldb.counters.CLDBMetrics [main]: Initializing CLDB Metrics with serviceName: cldbServer
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Using hostname file /opt/mapr/hostname
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Using hostid file /opt/mapr/hostid
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDB Startup
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDB Properties from configuration file: {cldb.jmxremote.port=7220, cldb.web.port=7221, cldb.port=7222, cldb.zookeeper.servers=192.168.0.214:5181, cldb.numthreads=10, cldb.min.fileservers=1, hadoop.version=0.20.2}
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDB Command line args: /opt/mapr/conf/cldb.conf
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Initializing CLDB
2012-01-08 08:40:48,485 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Starting RPCServer on port 7222 with num thread 20 and heap size of 611(MB)
2012-01-08 08:40:48,503 INFO  com.mapr.fs.cldb.CLDB [main]: MapR BuildVersion: 1.2.0.12140GA
2012-01-08 08:40:48,503 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Start CLDBServer
2012-01-08 08:40:48,525 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDBInit: HostName : mapr
2012-01-08 08:40:48,525 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDBInit: ServerId: 6047758994903222080
2012-01-08 08:40:48,525 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDBInit: Cluster name : my.cluster.com
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting uid as 0
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 0
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 1
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 2
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 3
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 4
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 6
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB creds setting adding gid 10
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBState: CLDB State change : INITIAZING
2012-01-08 08:40:48,532 INFO  com.mapr.fs.cldb.CLDBServer [main]: Read 2 nodes from the node list file
2012-01-08 08:40:48,537 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: ZooKeeperClient init: zk timeout = 30000 ms
2012-01-08 08:40:48,585 INFO  com.mapr.fs.cldb.CLDBServer [main-EventThread]: ZooKeeper event None on path null
2012-01-08 08:40:50,695 INFO  com.mapr.fs.cldb.CLDBServer [main]: CLDB Init: ZooKeeper Servers configured. Connected to 192.168.0.214:5181
2012-01-08 08:40:50,737 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: ZooKeeperClient : No FileServers for KvStore container.  New Installation, becoming Master
2012-01-08 08:40:50,746 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: ZooKeeperClient: CLDB is current Master
2012-01-08 08:40:50,746 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: CLDB became master. Creating new KvStoreContainer for cid: 1
2012-01-08 08:40:50,746 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: No FileServers at this point
2012-01-08 08:40:50,747 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: Storing KvStoreContainerInfo to ZooKeeper  Container ID:1 VolumeId:1 Servers:  Inactive Servers:  Unused Servers:  Latest epoch:3
2012-01-08 08:40:50,761 INFO  com.mapr.fs.cldb.zookeeper.ZooKeeperClient [main]: Adding KvStore ContainerInfo 1 to ZooKeeper  Container ID:1 VolumeId:1 Servers:  Inactive Servers:  Unused Servers:  Latest epoch:3
2012-01-08 08:40:50,761 INFO  com.mapr.fs.cldb.CLDBServer [main]: Starting thread to monitor waiting for local kvstore to become master
2012-01-08 08:40:50,812 INFO  com.mapr.fs.cldb.ActiveContainersMap [main]: Initializing containers cache with 1000000 number of entires
prog: 2345, proc 103, RpcProgram not found
2012-01-08 08:40:51,213 INFO  com.mapr.volumemirror.VolumeMirror [main]: Initializing volume mirror thread ...
2012-01-08 08:40:51,242 INFO  com.mapr.fs.cldb.http.HttpServer [main]: Creating listener for 0.0.0.0
prog: 2345, proc 40, RpcProgram not found
2012-01-08 08:40:51.263::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2012-01-08 08:40:51,323 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBState: CLDB State change : WAIT_FOR_FILESERVERS
2012-01-08 08:40:51,324 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Exporting program 2345
2012-01-08 08:40:51,324 INFO  com.mapr.fs.cldb.CLDB [main]: CLDBInit: Starting HTTP Server
2012-01-08 08:40:51,324 INFO  com.mapr.fs.cldb.CLDBServer [main]: Init: Start HTTP Server
2012-01-08 08:40:51,324 INFO  com.mapr.fs.cldb.http.HttpServer [main]: WebServer: Starting WebServer
2012-01-08 08:40:51,325 INFO  com.mapr.fs.cldb.http.HttpServer [main]: Lisetner started on SelectChannelConnector@0.0.0.0:7221 port 7221
2012-01-08 08:40:51.325::INFO:  jetty-6.1.14
2012-01-08 08:40:51.637::INFO:  Started SelectChannelConnector@0.0.0.0:7221
2012-01-08 08:40:51,637 INFO  com.mapr.fs.cldb.CLDBServer [main]: HTTP Server
2012-01-08 08:40:55,284 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:49598 Generating reply with status: 3
2012-01-08 08:40:55,360 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 40 from 192.168.0.214:49598 Generating reply with status: 3
2012-01-08 08:40:59,488 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:52561 Generating reply with status: 3
2012-01-08 08:40:59,530 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 40 from 192.168.0.214:52561 Generating reply with status: 3
2012-01-08 08:41:03,528 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:45949 Generating reply with status: 3
2012-01-08 08:41:03,558 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 40 from 192.168.0.214:45949 Generating reply with status: 3
2012-01-08 08:41:07,542 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:53880 Generating reply with status: 3
2012-01-08 08:41:07,569 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 40 from 192.168.0.214:53880 Generating reply with status: 3
2012-01-08 08:41:11,436 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:48406 Generating reply with status: 3
2012-01-08 08:41:11,464 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 40 from 192.168.0.214:48406 Generating reply with status: 3
2012-01-08 08:41:14,617 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:60872 Generating reply with status: 3
2012-01-08 08:41:14,695 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: FSRegister: Request  FSID: 6047758994903222080 FSNetworkLocation: / FSHost:Port: 192.168.0.214:5660- FSHostName: mapr StoragePools  Capacity: 0 Available: 0 Used: 0 Role: 0 isDCA: false Received registration request
2012-01-08 08:41:14,696 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: Cluster uuid is -7471553428027472942-1723714580565675856
2012-01-08 08:41:14,725 INFO  com.mapr.fs.cldb.counters.FileServerMetrics [pool-1-thread-1]: Initializing File Server Metrics with hostName=mapr
2012-01-08 08:41:14,725 INFO  com.mapr.fs.cldb.topology.FileServer [pool-1-thread-1]: Instantiating fileserver metrics with context:com.mapr.fs.cldb.counters.MapRGangliaContext31
2012-01-08 08:41:14,726 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: FSRegister: Registered FileServer: 192.168.0.214:5660-
2012-01-08 08:41:15,410 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:33044 Generating reply with status: 3
2012-01-08 08:41:15,484 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 40 from 192.168.0.214:33044 Generating reply with status: 3
2012-01-08 08:41:15,532 INFO  com.mapr.fs.cldb.CLDBServer [pool-1-thread-1]: RPC: PROGRAMID: 2345 PROCEDUREID: 103 from 192.168.0.214:329"
<code>
any ideas?

Outcomes