|
@@ -417,7 +417,7 @@ public class TestSequenceFile extends TestCase {
|
|
Path file = null;
|
|
Path file = null;
|
|
int seed = new Random().nextInt();
|
|
int seed = new Random().nextInt();
|
|
|
|
|
|
- String usage = "Usage: SequenceFile (-local | -dfs <namenode:port>) " +
|
|
|
|
|
|
+ String usage = "Usage: SequenceFile " +
|
|
"[-count N] " +
|
|
"[-count N] " +
|
|
"[-seed #] [-check] [-compressType <NONE|RECORD|BLOCK>] " +
|
|
"[-seed #] [-check] [-compressType <NONE|RECORD|BLOCK>] " +
|
|
"-codec <compressionCodec> " +
|
|
"-codec <compressionCodec> " +
|
|
@@ -428,7 +428,7 @@ public class TestSequenceFile extends TestCase {
|
|
System.exit(-1);
|
|
System.exit(-1);
|
|
}
|
|
}
|
|
|
|
|
|
- FileSystem fs = FileSystem.parseArgs(args, 0, conf);
|
|
|
|
|
|
+ FileSystem fs = null;
|
|
try {
|
|
try {
|
|
for (int i=0; i < args.length; ++i) { // parse command line
|
|
for (int i=0; i < args.length; ++i) { // parse command line
|
|
if (args[i] == null) {
|
|
if (args[i] == null) {
|
|
@@ -460,6 +460,9 @@ public class TestSequenceFile extends TestCase {
|
|
file = new Path(args[i]);
|
|
file = new Path(args[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ fs = file.getFileSystem(conf);
|
|
|
|
+
|
|
LOG.info("count = " + count);
|
|
LOG.info("count = " + count);
|
|
LOG.info("megabytes = " + megabytes);
|
|
LOG.info("megabytes = " + megabytes);
|
|
LOG.info("factor = " + factor);
|
|
LOG.info("factor = " + factor);
|