Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13720

HDFS dataset Anti-Affinity Block Placement across all DataNodes for data local task optimization (improve Spark executor utilization & performance)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.3
    • None
    • None
    • Hortonworks HDP 2.6

    Description

      Improvement Request for Anti-Affinity Block Placement across datanodes such that for a given data set the blocks are distributed evenly across all available datanodes in order to improve task scheduling while maintaining data locality.

      Methods to be implemented:

      1. dfs balancer command switch plus a target path of files / directories containing the blocks to be rebalanced
      2. dfs client side write flag

      Both options should proactively (re)distribute the given data set as evenly as possible across all datanodes in the cluster.

      See this following Spark issue which causes massive under-utilisation across jobs. Only 30-50% of executor cores were being used for tasks due to data locality targeting. Many executors doing literally nothing, while holding significant cluster resources, because the data set, which in at least one job was large enough to have 30,000 tasks churning though slowly on only a subset of the available executors. The workaround in the end was to disable data local tasks in Spark, but if everyone did that the bottleneck would go back to being the network and it undermines Hadoop's first premise of don't move the data to compute. For performance critical jobs, returning containers to Yarn because they cannot find any data to execute on locally isn't a good idea either, they want the jobs to use all the resources available and allocated to the job, not just the resources on a subset of nodes that hold a given dataset or disabling data local task execution to pull half the blocks across the network to make use of the other half of the nodes.

      https://issues.apache.org/jira/browse/SPARK-24474

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              harisekhon Hari Sekhon
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: