Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18955

HoS: Unable to create Channel from class NioServerSocketChannel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0
    • Spark
    • None

    Description

      Hit the issue when trying launch spark job. Stack trace:

      Caused by: java.lang.NoSuchMethodError: io.netty.channel.DefaultChannelId.newInstance()Lio/netty/channel/DefaultChannelId;
              at io.netty.channel.AbstractChannel.newId(AbstractChannel.java:111) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              at io.netty.channel.AbstractChannel.<init>(AbstractChannel.java:83) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              at io.netty.channel.nio.AbstractNioChannel.<init>(AbstractNioChannel.java:84) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              at io.netty.channel.nio.AbstractNioMessageChannel.<init>(AbstractNioMessageChannel.java:42) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              at io.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:86) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              at io.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:72) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_151]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_151]
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_151]
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_151]
              at io.netty.channel.ReflectiveChannelFactory.newChannel(ReflectiveChannelFactory.java:38) ~[netty-all-4.1.17.Final.jar:4.1.17.Final]
              ... 32 more
      

      It seems we have conflicts versions of class io.netty.channel.DefaultChannelId from async-http-client.jar and netty-all.jar

      Attachments

        1. HIVE-18955.1.patch
          1 kB
          Rui Li
        2. HIVE-18955.1.patch
          1 kB
          Rui Li

        Issue Links

          Activity

            People

              lirui Rui Li
              lirui Rui Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: