[ https://issues.apache.org/jira/browse/HADOOP-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549480 ]
Tom White commented on HADOOP-2342: ----------------------------------- I built a distribution with this patch and got the following error. It looks like MiniDFSCluster and NameNode are loaded by different classloaders which causes the package access on createNameNode to fail. >bin/hadoop jar hadoop-0.16.0-dev-test.jar dfsthroughput Local = /tmp/hadoop-tom/mapred/temp Writing local time: 246 Reading local time: 219 Writing raw time: 225 Reading raw time: 216 Writing checked time: 219 Reading checked time: 238 java.lang.IllegalAccessError: tried to access method org.apache.hadoop.dfs.NameNode.createNameNode([Ljava/lang/String;Lorg/apache/hadoop/conf/Configuration;)Lorg/apache/hadoop/dfs/NameNode; from class org.apache.hadoop.dfs.MiniDFSCluster at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:179) at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:118) at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:90) at org.apache.hadoop.dfs.BenchmarkThroughput.main(BenchmarkThroughput.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.hadoop.test.AllTestDriver.main(AllTestDriver.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.hadoop.util.RunJar.main(RunJar.java:155) > create a micro-benchmark for measure local-file versus hdfs read > ---------------------------------------------------------------- > > Key: HADOOP-2342 > URL: https://issues.apache.org/jira/browse/HADOOP-2342 > Project: Hadoop > Issue Type: Test > Components: dfs > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Fix For: 0.16.0 > > Attachments: throughput.patch > > > We should have a benchmark that measures reading a 10g file from hdfs and > from local disk. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.