Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1422

hadoop-hdfs-trunk is broken due to HADOOP-6951 change to hadoop-common-trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • namenode
    • 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

          Activity

            People

              Unassigned Unassigned
              tanping Tanping Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: