Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1531

NoClassDefFoundError: org/iq80/snappy/CorruptionException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 4.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      CentOS7, HBase 0.98.5

      Description

      It is my understanding that Phoenix is deployed in HBase by modifying the HBASE_CLASSPATH variable to include phoenix-core-<version>.jar. This worked in 4.1.0 and 4.2.1. But, does not work with 4.2.2. When a query is executed, a NoClassDefFoundError is encountered. A workaround is to include the phoenix-4.2.2-server.jar.

      Mon Dec 15 17:40:31 UTC 2014, org.apache.hadoop.hbase.client.RpcRetryingCaller@798da1e7, java.io.IOException: java.io.IOException: java.lang.NoClassDefFoundError: org/iq80/snappy/CorruptionException
      at org.apache.phoenix.coprocessor.ServerCachingEndpointImpl.addServerCache(ServerCachingEndpointImpl.java:78)
      at org.apache.phoenix.coprocessor.generated.ServerCachingProtos$ServerCachingService.callMethod(ServerCachingProtos.java:3200)
      at org.apache.hadoop.hbase.regionserver.HRegion.execService(HRegion.java:5639)
      at org.apache.hadoop.hbase.regionserver.HRegionServer.execServiceOnRegion(HRegionServer.java:3322)
      at org.apache.hadoop.hbase.regionserver.HRegionServer.execService(HRegionServer.java:3304)
      at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:29591)
      at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2026)
      at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:98)
      at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:114)
      at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:94)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: org/iq80/snappy/CorruptionException
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at org.apache.phoenix.coprocessor.ServerCachingEndpointImpl.addServerCache(ServerCachingEndpointImpl.java:72)
      ... 10 more
      Caused by: java.lang.ClassNotFoundException: org.iq80.snappy.CorruptionException
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 13 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jchabot72 Jerry Chabot
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: