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

Problem with shading apache commons on Azure.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.8.0
    • Fix Version/s: 4.15.0, 5.1.0
    • Labels:
      None

      Description

      When Phoenix is used on top of Azure FS, the following exception may happen during execution of sqlline:

      Caused by: java.lang.AbstractMethodError: org.apache.hadoop.metrics2.sink.WasbAzureIaasSink.init(Lorg/apache/phoenix/shaded/org/apache/commons/configuration/SubsetConfiguration;)V
      at org.apache.hadoop.metrics2.impl.MetricsConfig.getPlugin(MetricsConfig.java:199)
      at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.newSink(MetricsSystemImpl.java:529)
      at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configureSinks(MetricsSystemImpl.java:501)
      at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configure(MetricsSystemImpl.java:480)
      at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.start(MetricsSystemImpl.java:189)
      at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.init(MetricsSystemImpl.java:164)
      at org.apache.hadoop.fs.azure.metrics.AzureFileSystemMetricsSystem.fileSystemStarted(AzureFileSystemMetricsSystem.java:41)
      at org.apache.hadoop.fs.azure.NativeAzureFileSystem.initialize(NativeAzureFileSystem.java:1155)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2736)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99)
      at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2770)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2752)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:386)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:179)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370)
      at org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
      at org.apache.hadoop.hbase.util.DynamicClassLoader.initTempDir(DynamicClassLoader.java:118)
      at org.apache.hadoop.hbase.util.DynamicClassLoader.<init>(DynamicClassLoader.java:98)
      at org.apache.hadoop.hbase.protobuf.ProtobufUtil.<clinit>(ProtobufUtil.java:249)
      at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64)
      at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:75)
      at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
      at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:886)
      at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:642)
      ... 32 more
      

        Attachments

        1. PHOENIX-3236-1.patch
          0.8 kB
          Sergey Soldatov

          Activity

            People

            • Assignee:
              sergey.soldatov Sergey Soldatov
              Reporter:
              sergey.soldatov Sergey Soldatov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: