Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The recent check in to hadoop-common breaks hadoop-hdfs trunk. The change was made to
src/java/org/apache/hadoop/ipc/Server.java src/java/org/apache/hadoop/ipc/Server.java
The change makes refresh() method to be non-static
- public static synchronized void refresh(Configuration conf,
+ public synchronized void refresh(Configuration conf,
PolicyProvider provider) {
This breaks the invocation of this method in DataNode.java, NameNode.java. Compilation errors :
compile-hdfs-classes:
[javac] Compiling 206 source files to /home/tanping/src/SVN/hadoop-hdfs-trunk/build/classes
[javac] /home/tanping/src/SVN/hadoop-hdfs-trunk/src/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java:461: non-static method refresh(org.apache.hadoop.conf.Configuration,org.apache.hadoop.security.authorize.PolicyProvider) cannot be referenced from a static context
[javac] ServiceAuthorizationManager.refresh(conf, new HDFSPolicyProvider());
[javac] ^
[javac] /home/tanping/src/SVN/hadoop-hdfs-trunk/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:356: non-static method refresh(org.apache.hadoop.conf.Configuration,org.apache.hadoop.security.authorize.PolicyProvider) cannot be referenced from a static context
[javac] ServiceAuthorizationManager.refresh(conf, new HDFSPolicyProvider());
[javac] ^
[javac] /home/tanping/src/SVN/hadoop-hdfs-trunk/src/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:1420: non-static method refresh(org.apache.hadoop.conf.Configuration,org.apache.hadoop.security.authorize.PolicyProvider) cannot be referenced from a static context
[javac] ServiceAuthorizationManager.refresh(
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 errors
Attachments
Issue Links
- is related to
-
MAPREDUCE-2092 Trunk can't be compiled
- Resolved