AnsweredAssumed Answered

Retrying to connect ZooKeeper error when running Mapr haddoop samples

Question asked by john_doe on Aug 25, 2014
Latest reply on May 12, 2015 by tolgahan.buke
I'm trying to run the sample hadoop word cout coming with the MapR client installation. I run it this way:

    C:\opt\mapr\hadoop\hadoop-0.20.2>.\bin\hadoop.bat jar c:\opt\mapr\hadoop\hadoop-0.20.2\hadoop-0.20.2-dev-examples.jar wordcount /opt/mapr/input /opt/mapr/output

This is what I see in the console:

    14/08/25 14:37:25 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes
    14/08/25 14:37:25 INFO security.JniBasedUnixGroupsMappingWithFallback: Falling back to shell based
    14/08/25 14:37:25 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 0 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:37:27 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 1 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:37:31 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 2 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:37:37 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 3 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:37:45 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 4 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:37:55 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 5 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:38:07 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 6 Current ZooKeeper Server: maprdemo:5181
    14/08/25 14:38:21 INFO fs.JobTrackerWatcher: Retrying to connect ZooKeeper Attempt# 7 Current ZooKeeper Server: maprdemo:5181

On my mapr node, zookeeper is up and running and the right client port is used (i.e. 5181):

    $ /etc/init.d/mapr-zookeeper start
    Starting zookeeper ... already running as process 1121.
    $ cat /opt/mapr/zookeeper-3.4.5/conf/zoo.cfg
    # the port at which the clients will connect
    clientPort=5181

I've also tried a sample Java client that connect to zookeeper, and the connection was successfully established. So, what is wrong and how I can get this fixed to run hadoop jobs on MapR?

Outcomes