You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Johan Oskarson (JIRA)" <ji...@apache.org> on 2006/05/08 13:22:20 UTC
[jira] Created: (HADOOP-201) hadoop dfs -report throws exception
hadoop dfs -report throws exception
-----------------------------------
Key: HADOOP-201
URL: http://issues.apache.org/jira/browse/HADOOP-201
Project: Hadoop
Type: Bug
Components: dfs
Versions: 0.2
Environment: linux, jdk 1.5
Reporter: Johan Oskarson
Priority: Minor
Running hadoop dfs -report throws the lovely exception below.
Changing org.apache.hadoop.dfs.DatanodeInfo back to being a public class solves the problem.
~/hadoop$ bin/hadoop dfs -report
060508 104801 parsing file:/home/hadoop/hadoop/conf/hadoop-default.xml
060508 104801 parsing file:/home/hadoop/hadoop/conf/hadoop-site.xml
060508 104801 No FS indicated, using default:xxx:9000
060508 104801 Client connection to 10.0.0.12:9000: starting
Total raw bytes: 2763338170368 (2573.55 Gb)
Used raw bytes: 1548564473694 (1442.21 Gb)
% used: 56.03%
Total effective bytes: 145953744375 (135.93 Gb)
Effective replication multiplier: 10.609967427182013
-------------------------------------------------
060508 104801 Client connection to 10.0.0.12:9000 caught: java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableFactories can not access a member of class org.apache.hadoop.dfs.DatanodeInfo with modifiers "public"
java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableFactories can not access a member of class org.apache.hadoop.dfs.DatanodeInfo with modifiers "public"
at org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.java:49)
at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:226)
at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:163)
at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:211)
at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:60)
at org.apache.hadoop.ipc.Client$Connection.run(Client.java:170)
Caused by: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableFactories can not access a member of class org.apache.hadoop.dfs.DatanodeInfo with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:344)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.java:45)
... 5 more
060508 104801 Client connection to 10.0.0.12:9000: closing
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (HADOOP-201) hadoop dfs -report throws exception
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-201?page=all ]
Doug Cutting resolved HADOOP-201:
---------------------------------
Fix Version: 0.2.1
Resolution: Fixed
Assign To: Doug Cutting
I just committed a fix for this. It will be in the 0.2.1 bugfix release later this week.
> hadoop dfs -report throws exception
> -----------------------------------
>
> Key: HADOOP-201
> URL: http://issues.apache.org/jira/browse/HADOOP-201
> Project: Hadoop
> Type: Bug
> Components: dfs
> Versions: 0.2
> Environment: linux, jdk 1.5
> Reporter: Johan Oskarson
> Assignee: Doug Cutting
> Priority: Minor
> Fix For: 0.2.1
>
> Running hadoop dfs -report throws the lovely exception below.
> Changing org.apache.hadoop.dfs.DatanodeInfo back to being a public class solves the problem.
> ~/hadoop$ bin/hadoop dfs -report
> 060508 104801 parsing file:/home/hadoop/hadoop/conf/hadoop-default.xml
> 060508 104801 parsing file:/home/hadoop/hadoop/conf/hadoop-site.xml
> 060508 104801 No FS indicated, using default:xxx:9000
> 060508 104801 Client connection to 10.0.0.12:9000: starting
> Total raw bytes: 2763338170368 (2573.55 Gb)
> Used raw bytes: 1548564473694 (1442.21 Gb)
> % used: 56.03%
> Total effective bytes: 145953744375 (135.93 Gb)
> Effective replication multiplier: 10.609967427182013
> -------------------------------------------------
> 060508 104801 Client connection to 10.0.0.12:9000 caught: java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableFactories can not access a member of class org.apache.hadoop.dfs.DatanodeInfo with modifiers "public"
> java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableFactories can not access a member of class org.apache.hadoop.dfs.DatanodeInfo with modifiers "public"
> at org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.java:49)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:226)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:163)
> at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:211)
> at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:60)
> at org.apache.hadoop.ipc.Client$Connection.run(Client.java:170)
> Caused by: java.lang.IllegalAccessException: Class org.apache.hadoop.io.WritableFactories can not access a member of class org.apache.hadoop.dfs.DatanodeInfo with modifiers "public"
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
> at java.lang.Class.newInstance0(Class.java:344)
> at java.lang.Class.newInstance(Class.java:303)
> at org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.java:45)
> ... 5 more
> 060508 104801 Client connection to 10.0.0.12:9000: closing
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira