Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0, 2.0.0-alpha
    • Fix Version/s: 0.20.205.0, 0.23.0
    • Component/s: hdfs-client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I am trying to perform complete build from trunk folder but the compilation fails.

      Commandline:
      mvn clean install

      Error Message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
      3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
      [ERROR] \Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
      \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
      cannot be determined; no unique maximal instance exists for type variable T with
      upper bounds T,java.lang.Object
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
      ch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please rea
      d the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
      eption
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command

      This is because of known reason
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954

      WebHdfsFileSystem.java
      
      Following is the code snippet with issue.
      
        private <T> T run(final HttpOpParam.Op op, final Path fspath,
            final Param<?,?>... parameters) throws IOException {
          final HttpURLConnection conn = httpConnect(op, fspath, parameters);
          validateResponse(op, conn);
          try {
            return jsonParse(conn.getInputStream());
          } finally {
            conn.disconnect();
          }
        }
      
      

      Fix to the issue

      WebHdfsFileSystem.java
      
      Following is the fix to the issue.
      
        private <T> T run(final HttpOpParam.Op op, final Path fspath,
            final Param<?,?>... parameters) throws IOException {
          final HttpURLConnection conn = httpConnect(op, fspath, parameters);
          validateResponse(op, conn);
          try {
            return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
          } finally {
            conn.disconnect();
          }
        }
      
      
      1. HDFS-2331.patch
        0.5 kB
        Abhijit Suresh Shingate
      2. HDFS-2331-1.patch
        0.7 kB
        Abhijit Suresh Shingate

        Issue Links

          Activity

          Abhijit Suresh Shingate created issue -
          Abhijit Suresh Shingate made changes -
          Field Original Value New Value
          Description I am trying to perform completed build from trunk folder but the compilation fails.

          *Commandline:*
          mvn clean install

          *Error Message:*

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
          [ERROR] \iSAP\Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
          \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
          cannot be determined; no unique maximal instance exists for type variable T with
           upper bounds T,java.lang.Object
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
          ch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please rea
          d the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
          eption
          [ERROR]
          [ERROR] After correcting the problems, you can resume the build with the command


          This is because of known reason
          [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]



          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}


          Fix to the issue


          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}

          I am trying to perform complete build from trunk folder but the compilation fails.

          *Commandline:*
          mvn clean install

          *Error Message:*

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
          [ERROR] \iSAP\Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
          \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
          cannot be determined; no unique maximal instance exists for type variable T with
           upper bounds T,java.lang.Object
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
          ch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please rea
          d the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
          eption
          [ERROR]
          [ERROR] After correcting the problems, you can resume the build with the command


          This is because of known reason
          [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]



          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}


          Fix to the issue


          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}

          Abhijit Suresh Shingate made changes -
          Description I am trying to perform complete build from trunk folder but the compilation fails.

          *Commandline:*
          mvn clean install

          *Error Message:*

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
          [ERROR] \iSAP\Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
          \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
          cannot be determined; no unique maximal instance exists for type variable T with
           upper bounds T,java.lang.Object
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
          ch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please rea
          d the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
          eption
          [ERROR]
          [ERROR] After correcting the problems, you can resume the build with the command


          This is because of known reason
          [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]



          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}


          Fix to the issue


          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}

          I am trying to perform complete build from trunk folder but the compilation fails.

          *Commandline:*
          mvn clean install

          *Error Message:*

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
          [ERROR] \Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
          \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
          cannot be determined; no unique maximal instance exists for type variable T with
           upper bounds T,java.lang.Object
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
          ch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please rea
          d the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
          eption
          [ERROR]
          [ERROR] After correcting the problems, you can resume the build with the command


          This is because of known reason
          [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]



          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}


          Fix to the issue


          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}

          Abhijit Suresh Shingate made changes -
          Description I am trying to perform complete build from trunk folder but the compilation fails.

          *Commandline:*
          mvn clean install

          *Error Message:*

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
          [ERROR] \Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
          \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
          cannot be determined; no unique maximal instance exists for type variable T with
           upper bounds T,java.lang.Object
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
          ch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please rea
          d the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
          eption
          [ERROR]
          [ERROR] After correcting the problems, you can resume the build with the command


          This is because of known reason
          [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]



          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}


          Fix to the issue


          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}

          I am trying to perform complete build from trunk folder but the compilation fails.

          *Commandline:*
          mvn clean install

          *Error Message:*

          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
          3.2:compile (default-compile) on project hadoop-hdfs: Compilation failure
          [ERROR] \Hadoop\SVN\trunk\hadoop-hdfs-project\hadoop-hdfs\src\main\java\org
          \apache\hadoop\hdfs\web\WebHdfsFileSystem.java:[209,21] type parameters of <T>T
          cannot be determined; no unique maximal instance exists for type variable T with
           upper bounds T,java.lang.Object
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
          ch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please rea
          d the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
          eption
          [ERROR]
          [ERROR] After correcting the problems, you can resume the build with the command


          This is because of known reason
          [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954]



          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the code snippet with issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}


          Fix to the issue


          {code:title=WebHdfsFileSystem.java|borderStyle=solid}

          Following is the fix to the issue.

            private <T> T run(final HttpOpParam.Op op, final Path fspath,
                final Param<?,?>... parameters) throws IOException {
              final HttpURLConnection conn = httpConnect(op, fspath, parameters);
              validateResponse(op, conn);
              try {
                return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
              } finally {
                conn.disconnect();
              }
            }

          {code}

          Tsz Wo Nicholas Sze made changes -
          Link This issue duplicates HDFS-2329 [ HDFS-2329 ]
          Abhijit Suresh Shingate made changes -
          Attachment HDFS-2331.patch [ 12494413 ]
          Abhijit Suresh Shingate made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 0.23.0 [ 12315571 ]
          Fix Version/s 0.24.0 [ 12317653 ]
          Tsz Wo Nicholas Sze made changes -
          Assignee Abhijit Suresh Shingate [ abhijit.shingate ]
          Abhijit Suresh Shingate made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Abhijit Suresh Shingate made changes -
          Attachment HDFS-2331-1.patch [ 12494568 ]
          Abhijit Suresh Shingate made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Tsz Wo Nicholas Sze made changes -
          Hadoop Flags [Reviewed]
          Fix Version/s 0.20.205.0 [ 12316392 ]
          Fix Version/s 0.23.0 [ 12315571 ]
          Affects Version/s 0.20.205.0 [ 12316392 ]
          Affects Version/s 0.23.0 [ 12315571 ]
          Component/s hdfs client [ 12312928 ]
          Component/s build [ 12312925 ]
          Tsz Wo Nicholas Sze made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Tsz Wo Nicholas Sze made changes -
          Fix Version/s 0.20.206.0 [ 12317959 ]
          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Tsz Wo Nicholas Sze made changes -
          Fix Version/s 0.23.0 [ 12315571 ]
          Suresh Srinivas made changes -
          Fix Version/s 1.1.0 [ 12317959 ]
          Allen Wittenauer made changes -
          Affects Version/s 2.0.0-alpha [ 12320353 ]
          Affects Version/s 0.24.0 [ 12317653 ]
          Fix Version/s 2.0.0-alpha [ 12320353 ]
          Fix Version/s 0.24.0 [ 12317653 ]
          Allen Wittenauer made changes -
          Fix Version/s 2.0.0-alpha [ 12320353 ]

            People

            • Assignee:
              Abhijit Suresh Shingate
              Reporter:
              Abhijit Suresh Shingate
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development