Trouble running TestDFSIO over Alluxio-1.3/MapR-FS 5.0.0

234 views
Skip to first unread message

ZT

unread,
Aug 16, 2016, 6:34:12 AM8/16/16
to Alluxio Users
Hello,

Every time I try to run TestDFSIO with the file location specified by the alluxio:// protocol, I get the following error:

$ time yarn jar /opt/mapr/hadoop/hadoop-2.7.0/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.0-mapr-1602-tests.jar TestDFSIO -D test.build.data=alluxio://192.168.2.2:19998/alluxio/TestDFSIO -libjars ~/alluxio-demo/alluxio/./core/client/target/alluxio-core-client-1.3.0-SNAPSHOT-jar-with-dependencies.jar,/home/mapr/alluxio-demo/alluxio/./core/client/target/alluxio-core-client-1.3.0-SNAPSHOT-tests.jar -write -nrFiles 10 -size 1GB
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/mapr/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/mapr/alluxio-demo/alluxio/core/client/target/alluxio-core-client-1.3.0-SNAPSHOT-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
16/08/16 06:31:10 INFO fs.TestDFSIO: TestDFSIO.1.8
16/08/16 06:31:10 INFO fs.TestDFSIO: nrFiles = 10
16/08/16 06:31:10 INFO fs.TestDFSIO: nrBytes (MB) = 1024.0
16/08/16 06:31:10 INFO fs.TestDFSIO: bufferSize = 1000000
16/08/16 06:31:10 INFO fs.TestDFSIO: baseDir = alluxio://192.168.2.2:19998/alluxio/TestDFSIO
16/08/16 06:31:10 INFO fs.TestDFSIO: creating control file: 1073741824 bytes, 10 files
2016-08-16 06:31:10,3044 ERROR Cidcache fs/client/fileclient/cc/cidcache.cc:1611 Thread: 78867 MoveToNextCldb: No CLDB entries, cannot run, sleeping 5 seconds!
2016-08-16 06:31:15,3047 ERROR Client fs/client/fileclient/cc/client.cc:1104 Thread: 78867 Failed to initialize client for cluster 192.168.2.2:19998, error Connection reset by peer(104)
java.io.IOException: Could not create FileClient
        at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:609)
        at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:670)
        at com.mapr.fs.MapRFileSystem.delete(MapRFileSystem.java:1135)
        at org.apache.hadoop.fs.TestDFSIO.createControlFile(TestDFSIO.java:300)
        at org.apache.hadoop.fs.TestDFSIO.run(TestDFSIO.java:973)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
        at org.apache.hadoop.fs.TestDFSIO.main(TestDFSIO.java:870)
        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:71)
        at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
        at org.apache.hadoop.test.MapredTestDriver.run(MapredTestDriver.java:130)
        at org.apache.hadoop.test.MapredTestDriver.main(MapredTestDriver.java:138)
        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.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

The same configuration works fine with Terasort, etc. Also if I use maprfs:// or hdfs:// in the CLI the command does not fail.

What am I missing?

Thanks!
Zoram

Gene Pang

unread,
Aug 16, 2016, 9:42:05 AM8/16/16
to Alluxio Users
Hi Zoram,

I have not tried TestDFSIO with MapR, but have you tried setting the "fs.defaultFS" parameter to use the alluxio scheme?

Thanks,
Gene

Gene Pang

unread,
Aug 16, 2016, 9:44:23 AM8/16/16
to Alluxio Users
Also, you may need to set the similar parameters for configuring Hadoop: http://www.alluxio.org/docs/master/en/Running-Hadoop-MapReduce-on-Alluxio.html#configuring-hadoop

Thanks,
Gene

ZT

unread,
Aug 17, 2016, 7:44:09 AM8/17/16
to Alluxio Users
Thanks for your reply, Gene.

I have tried setting fs.defaultFS (in core-site.xml) to "alluixo://alluxio.master.node:19998/" but it didn't help.

If anyone else has tried TestDFSIO on Alluxio/MapR-FS successfully, please let me know.

Zoram

Gene Pang

unread,
Aug 19, 2016, 9:24:18 AM8/19/16
to Alluxio Users
Hi Zoram,

Have you tried setting "fs.alluxio.impl" and "fs.AbstractFileSystem.alluxio.impl"? http://www.alluxio.org/docs/master/en/Running-Hadoop-MapReduce-on-Alluxio.html#configuring-hadoop

Thanks,
Gene

ZT

unread,
Aug 22, 2016, 12:36:05 PM8/22/16
to Alluxio Users
Hi Gene,

This is how my settings look like:

$ cat /opt/mapr/hadoop/hadoop-2.7.0/etc/hadoop/core-site.xml

....
        <property>
          <name>fs.alluxio.impl</name>
          <value>alluxio.hadoop.FileSystem</value>
          <description>The Alluxio FileSystem (Hadoop 1.x and 2.x)</description>
        </property>
        <property>
          <name>fs.alluxio-ft.impl</name>
          <value>alluxio.hadoop.FaultTolerantFileSystem</value>
          <description>The Alluxio FileSystem (Hadoop 1.x and 2.x) with fault tolerant support</description>
        </property>
        <property>
          <name>fs.AbstractFileSystem.alluxio.impl</name>
          <value>alluxio.hadoop.AlluxioFileSystem</value>
          <description>The Alluxio AbstractFileSystem (Hadoop 2.x)</description>
        </property>
....

Thanks,
Zoram

Gene Pang

unread,
Aug 26, 2016, 9:35:46 AM8/26/16
to Alluxio Users
Hi Zoram,

I haven't tried DFSIO, but I have tried other mapr hadoop examples, like randomtextwriter, and wordcount. For those to work, I just had to add the "fs.alluxio.impl" property, propagate the configuration to all the other nodes, and restart the yarn node managers.

Thanks,
Gene

Gene Pang

unread,
Sep 13, 2016, 10:24:59 AM9/13/16
to Alluxio Users
Hi Zoram,

In your command line I don't think you need the test jar: alluxio-core-client-1.3.0-SNAPSHOT-tests.jar The client jar should be the only jar you need to include.

Also, do all of your nodes have the same core-site.xml files? (with the fs.alluxio.impl parameter set)

Thanks,
Gene

Gene Pang

unread,
Sep 23, 2016, 9:07:07 AM9/23/16
to Alluxio Users
Hi Zoram,

Were you able to resolve your issue?

Thanks,
Gene
Reply all
Reply to author
Forward
0 new messages