Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1287

yarn alpha and stable Client calculateAMMemory routines are different

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.9.0, 1.0.0
    • Fix Version/s: None
    • Component/s: YARN
    • Labels:
      None

      Description

      The yarn alpha version of calculateAMMemory takes into account the minimum resource capability and also subtracts out YarnAllocationHandler.MEMORY_OVERHEAD.

      The yarn stable version just sets the -Xmx to whatever is passed in by the user.

      The 2 of these should be the same.

      Personally I also think its weird how spark currently takes whatever user passes in for memory and adds YarnAllocationHandler.MEMORY_OVERHEAD to request to RM. This can be confusing to users. We should revisit all of this and commonize the stable/alpha code where possible.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tgraves Thomas Graves
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: