Hadoop: is it possible to run TestDFSIO benchmark as non-hdfs user

369 Views Asked by At

Is it possible to execute TestDFSIO benchmark as non-hdfs user? This benchmark is trying to create a /benchmarks directory and fails because of lack of permissions. Is there a way to make this benchmark use my hdfs home to store data?

1

There are 1 best solutions below

0
On

Should be possible by setting the configuration parameter "test.build.data", which defaults to "/benchmarks/TestDFSIO".

(see: https://github.com/apache/hadoop/blob/release-2.6.0/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/TestDFSIO.java#L178)

It looks like TestDFSIO consults 4 config files for its Configuration, so hopefully putting the parameter in any one of those would do the trick:

hdfs-default.xml, hdfs-site.xml, mapred-default.xml, mapred-site.xml

(see https://github.com/apache/hadoop/blob/release-2.6.0/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/TestDFSIO.java#L111-L114)