Created on 01-22-2018 07:43 AM - last edited on 01-22-2018 08:21 AM by cjervis
Dear Community,
I am running a well-known benchmark test to measure the I/O of my cluster using the hadoop-test-2.6.0-mr1-cdh5.13.0.jar using the TestDFSIO test. Normally the ouput should be written to TestDFSIO_results.log in the current folder of the bash (not hdfs) where I run the command. THis is in my case just my home folder.
I am running the command as follows:
sudo -u hdfs hadoop jar /opt/cloudera/parcels/CDH/jars/hadoop-test-2.6.0-mr1-cdh5.13.0.jar TestDFSIO -zrite -nrFiles 2 -size 100MB.
As it seems I need to run the job with the hdfs user, I have changed the permission of the default output file to 777 and set the owner and group to hdfs, but also this does not help (also previously when my own user was the owner it did not work).
Thanks for any help!!
Created 02-06-2018 02:32 AM
I just solved this issue by starting the command while I was in /tmp. The problem was the user of the hadoop jar job (hdfs) did not have sufficient rights to write to the local system. When executing from /tmp/ the output file with the results was correctly produced.
Hope this can help others in the future!
Created 02-06-2018 02:32 AM
I just solved this issue by starting the command while I was in /tmp. The problem was the user of the hadoop jar job (hdfs) did not have sufficient rights to write to the local system. When executing from /tmp/ the output file with the results was correctly produced.
Hope this can help others in the future!
Created 08-22-2019 09:03 AM
The directory /benchmarks is owned as "hdfs:superuser"
If you run the benchmark job with user hdfs, it wont run as hdfs is a banned user in Yarn configuration for container executor snippet.
what you need to do is to change the permission of "/benchmarks" as your custom user using hdfs token. Then you would be able to run the benchmarks job without any issue.
------
hadoop fs -chown -R user02:user02 /benchmarks
hadoop fs -ls /benchmarks
Found 1 items
drwxr-xr-x - user02 user02 0 2019-08-22 15:55 /benchmarks/TestDFSIO
------