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

Missing antlr runtime on server side after PHOENIX-2908

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • 4.8.0
    • None
    • None
    • None

    Description

      During PHOENIX-2908 antlr was completely removed from server jar. That's was a bad idea, since runtime is still required for indexes:

      2016-05-24 11:40:53,596 ERROR [StoreFileOpenerThread-L#0-1] coprocessor.CoprocessorHost: The coprocessor org.apache.hadoop.hbase.regionserver.IndexHalfStoreFileReaderGenerator threw java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
      java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
              at org.apache.phoenix.jdbc.PhoenixStatement.parseStatement(PhoenixStatement.java:1359)
              at org.apache.phoenix.jdbc.PhoenixStatement.executeUpdate(PhoenixStatement.java:1413)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2327)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2276)
              at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:78)
              at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2276)
              at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:233)
              at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:135)
              at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:202)
              at java.sql.DriverManager.getConnection(DriverManager.java:664)
              at java.sql.DriverManager.getConnection(DriverManager.java:208)
              at org.apache.phoenix.util.QueryUtil.getConnection(QueryUtil.java:326)
              at org.apache.phoenix.util.QueryUtil.getConnectionOnServer(QueryUtil.java:313)
              at org.apache.phoenix.util.QueryUtil.getConnectionOnServer(QueryUtil.java:303)
              at org.apache.hadoop.hbase.regionserver.IndexHalfStoreFileReaderGenerator.preStoreFileReaderOpen(IndexHalfStoreFileReaderGenerator.java:145)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$64.call(RegionCoprocessorHost.java:1580)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost$RegionOperation.call(RegionCoprocessorHost.java:1673)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperation(RegionCoprocessorHost.java:1749)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.execOperationWithResult(RegionCoprocessorHost.java:1712)
              at org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.preStoreFileReaderOpen(RegionCoprocessorHost.java:1575)
              at org.apache.hadoop.hbase.regionserver.StoreFileInfo.open(StoreFileInfo.java:246)
              at org.apache.hadoop.hbase.regionserver.StoreFile.open(StoreFile.java:399)
              at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:504)
              at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:494)
              at org.apache.hadoop.hbase.regionserver.HStore.createStoreFileAndReader(HStore.java:653)
              at org.apache.hadoop.hbase.regionserver.HStore.access$000(HStore.java:118)
              at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:520)
              at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:517)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      

      Attachments

        1. PHOENIX-2936-2.patch
          2 kB
          Sergey Soldatov
        2. PHOENIX-2936.patch
          0.9 kB
          Sergey Soldatov

        Activity

          People

            sergey.soldatov Sergey Soldatov
            sergey.soldatov Sergey Soldatov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: