Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10087

IMPALA-6050 causes alluxio not to be supported

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 3.3.0, Impala 3.4.0
    • Fix Version/s: Impala 4.0.0
    • Component/s: Frontend
    • Labels:
    • Epic Color:
      ghx-label-12

      Description

      IMPALA-6050 causes alluxio not to be supported.

      if (sampledFiles != null) {
          numPartitionsPerFs_ = sampledFiles.keySet().stream().collect(Collectors.groupingBy(
              SampledPartitionMetadata::getPartitionFsType, Collectors.counting()));    
      } else {
        numPartitionsPerFs_.putAll(partitions_.stream().collect(  
            Collectors.groupingBy(FeFsPartition::getFsType, Collectors.counting())));
      }
      public enum FsType {
          ADLS,
          HDFS,
          LOCAL,
          S3,
          OZONE;
      private static final Map<String, FsType> SCHEME_TO_FS_MAPPING =
          ImmutableMap.<String, FsType>builder()
             .put("abfs", ADLS)
             .put("abfss", ADLS)
             .put("adl", ADLS)
             .put("file", LOCAL)
             .put("hdfs", HDFS)
             .put("s3a", S3) 
             .put("o3fs", OZONE)
             .build();
      10:58:47.793 AM INFO cc:288 10:58:47.793 AM INFO cc:288 0543f5853d94c127:7a4e836900000000] java.lang.NullPointerException: element cannot be mapped to a null key
       at java.util.Objects.requireNonNull(Objects.java:228) at java.util.stream.Collectors.lambda$groupingBy$45(Collectors.java:907)
       at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
       at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
       at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
       at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at org.apache.impala.planner.HdfsScanNode.computeScanRangeLocations(HdfsScanNode.java:822)
       at org.apache.impala.planner.HdfsScanNode.init(HdfsScanNode.java:381)
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abeltian abeltian
                Reporter:
                abeltian abeltian
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: