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

IMPALA-6050 causes alluxio not to be supported

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.3.0, Impala 3.4.0
    • Impala 4.0.0
    • Frontend
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            abeltian abeltian
            abeltian abeltian
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment