Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-837

NetUtils.getInputStream() yeilds NoSuchMethodError

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      cdh3u4

      Description

      Ran into the following error while testing ACCUMULO-708 with CDH3U4. A quick Google search yielded HBASE-6396 which states that HADOOP-8350 changed the method signature.

      2012-10-28 16:54:00,759 [master.Master] ERROR: Error balancing tablets
      java.lang.NoSuchMethodError: org.apache.hadoop.net.NetUtils.getInputStream(Ljava/net/Socket;J)Ljava/io/InputStream;
              at org.apache.accumulo.core.util.TTimeoutTransport.create(TTimeoutTransport.java:39)
              at org.apache.accumulo.core.client.impl.ThriftTransportPool.createNewTransport(ThriftTransportPool.java:473)
              at org.apache.accumulo.core.client.impl.ThriftTransportPool.getTransport(ThriftTransportPool.java:464)
              at org.apache.accumulo.core.client.impl.ThriftTransportPool.getTransport(ThriftTransportPool.java:441)
              at org.apache.accumulo.core.client.impl.ThriftTransportPool.getTransportWithDefaultTimeout(ThriftTransportPool.java:366)
              at org.apache.accumulo.core.util.ThriftUtil.getClient(ThriftUtil.java:88)
              at org.apache.accumulo.server.master.LiveTServerSet$TServerConnection.getTableMap(LiveTServerSet.java:101)
              at org.apache.accumulo.server.master.Master.gatherTableInformation(Master.java:2051)
              at org.apache.accumulo.server.master.Master.access$2900(Master.java:185)
              at org.apache.accumulo.server.master.Master$StatusThread.updateStatus(Master.java:1979)
              at org.apache.accumulo.server.master.Master$StatusThread.run(Master.java:1969)
      
      1. PomChanges.diff
        2 kB
        Josh Elser
      2. adding-cloudera-repository.diff
        0.8 kB
        Josh Elser

        Issue Links

          Activity

          Hide
          billie.rinaldi Billie Rinaldi added a comment -

          I think the method we're using exists in all relevant versions of hadoop, but since it isn't part of hadoop's public API it doesn't have binary compatibility. It should work if accumulo is recompiled against the version of hadoop in CDH3U4.

          Show
          billie.rinaldi Billie Rinaldi added a comment - I think the method we're using exists in all relevant versions of hadoop, but since it isn't part of hadoop's public API it doesn't have binary compatibility. It should work if accumulo is recompiled against the version of hadoop in CDH3U4.
          Hide
          dlmarion Dave Marion added a comment -

          Good to know that we would have to recompile if/when we upgrade. Is this something that should go in a README as a known issue or something?

          Show
          dlmarion Dave Marion added a comment - Good to know that we would have to recompile if/when we upgrade. Is this something that should go in a README as a known issue or something?
          Hide
          elserj Josh Elser added a comment -

          It's also worth noting that CDH artifacts have ZooKeeper under the group org.apache.zookeeper instead of org.apache.hadoop as it currently in trunk's pom.xmls.

          Show
          elserj Josh Elser added a comment - It's also worth noting that CDH artifacts have ZooKeeper under the group org.apache.zookeeper instead of org.apache.hadoop as it currently in trunk's pom.xmls.
          Hide
          elserj Josh Elser added a comment -

          Adding required changes to trunk and local maven configuration to get around this issue in case it's useful for others.

          Show
          elserj Josh Elser added a comment - Adding required changes to trunk and local maven configuration to get around this issue in case it's useful for others.
          Hide
          ctubbsii Christopher Tubbs added a comment -

          Re-open if this is still a problem.

          Show
          ctubbsii Christopher Tubbs added a comment - Re-open if this is still a problem.

            People

            • Assignee:
              dlmarion Dave Marion
              Reporter:
              dlmarion Dave Marion
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development