AnsweredAssumed Answered

not able to run simple commands provide in mapr document.

Question asked by sharma.akshay2 on Apr 8, 2015
Latest reply on Apr 8, 2015 by jallen
I have started installed mapr sandbox for training. after installation I used the DEV 301 lab guide for further steps. I used login user name and password as user01 and mapr respectively.
Login is successful but when I tried the wordcount example i am getting below error.
Below are the points of clarification which i need.
 1. in document mkdir /user/user01/1.1 command is given to run. but when we  log in and do `pwd` is shows home/user01. how this mkdir /user/user01/1.1 will create a folder.
 2. hadoop1 jar /opt/mapr/hadoop/hadoop-0.20.2/hadoop-0.20.2-dev-examples.jar wordcount   gives error. error message is mentioned below.

Please help me in this.




    login as: user01
    user01@192.168.56.101's password:
    Last login: Wed Apr  8 00:15:56 2015
    -bash-4.1$ hadoop fs -ls
    2015-04-08 00:17:12,3226 ERROR Client fs/client/fileclient/cc/client.cc:394 Thre                                                                                        ad: 6711 Failed to initialize client for cluster training, error Connection rese                                                                                        t by peer(104)
    ls: Could not create FileClient
    -bash-4.1$ mkdir /user/user01/1.1
    mkdir: cannot create directory `/user/user01/1.1': No such file or directory
    -bash-4.1$ hadoop1 jar /opt/mapr/hadoop/hadoop-0.20.2/hadoop-0.20.2-dev-examples.jar wordcount /user/user01/1.^Cin.txt /user/user01/1.1/OUT
    -bash-4.1$ pwd
    /home/user01
    -bash-4.1$
    -bash-4.1$
    -bash-4.1$
    -bash-4.1$
    -bash-4.1$ pwd
    /home/user01
    -bash-4.1$
    -bash-4.1$
    -bash-4.1$ mkdir /user/user01/1.1
    mkdir: cannot create directory `/user/user01/1.1': No such file or directory
    -bash-4.1$
    -bash-4.1$
    -bash-4.1$
    -bash-4.1$ ls
    1.1  ESSENTIALS
    -bash-4.1$ hadoop1 jar /opt/mapr/hadoop/hadoop-0.20.2/hadoop-0.20.2-dev-examples.jar wordcount 1.1/in.txt 1.1/OUT
    2015-04-08 00:29:58,8958 ERROR Client fs/client/fileclient/cc/client.cc:394 Thread: 23086 Failed to initialize client for cluster training, error Connection reset by peer(104)
    15/04/08 00:29:58 ERROR ipc.FailoverRPC: FailoverProxy: Failing this Call: getStagingAreaDir. Error while fetching JobTracker location java.io.IOException: Failed to get cluster information for maprfs:///
    java.io.IOException: Failed to get cluster information for maprfs:///
            at com.mapr.fs.MapRFileSystem.getJobTrackerAddrs(MapRFileSystem.java:2102)
            at org.apache.hadoop.ipc.FailoverRPC$FailoverInvoker.invoke(FailoverRPC.java:409)
            at org.apache.hadoop.mapred.$Proxy4.getStagingAreaDir(Unknown Source)
            at org.apache.hadoop.mapred.JobClient.getStagingAreaDir(JobClient.java:1323)
            at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:102)
            at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:886)
            at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:880)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAs(Subject.java:415)
            at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1469)
            at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:880)
            at org.apache.hadoop.mapreduce.Job.submit(Job.java:574)
            at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:604)
            at org.apache.hadoop.examples.WordCount.main(WordCount.java:67)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
            at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145)
            at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:153)
            at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:76)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
    -bash-4.1$
    

Outcomes