Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-27596 [Umbrella] Optimize Hive source
  3. FLINK-27338

Improve spliting file for Hive table with orc format

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Currently, for hive source, it'll use the hdfs block size configured with key dfs.block.size in hdfs-site.xml as the max split size to split the files. The default value is usually 128M/256M depending on configuration.

      The strategy to split file is not reasonable for the number of splits tend to be less so that can't make good use of the parallel computing.

      What's more, when enable parallelism inference for hive source, it'll set the parallelism of Hive source to the num of splits when it's not bigger than max parallelism. So, it'll limit the source parallelism and could degrade the perfermance.

      To solve this problem, the idea is to calcuate a reasonable split size based on files's total size, block size,  default parallelism or parallelism configured by user. 

       

      The Jira is try to improve the splitting file logic for Hive table with orc format.

      Attachments

        Activity

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

          People

            luoyuxia luoyuxia
            luoyuxia luoyuxia
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment