Skip to content

Commit

Permalink
Fix type mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyum committed Nov 14, 2020
1 parent 0046222 commit 6002504
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -317,7 +317,7 @@ private[yarn] class YarnAllocator(
customSparkResources
}
val resource =
Resource.newInstance(resourcesWithDefaults.totalMemMiB, resourcesWithDefaults.cores)
Resource.newInstance(resourcesWithDefaults.totalMemMiB.toInt, resourcesWithDefaults.cores)
ResourceRequestHelper.setResourceRequests(customResources, resource)
logDebug(s"Created resource capability: $resource")
rpIdToYarnResource.putIfAbsent(rp.id, resource)
Expand Down

0 comments on commit 6002504

Please sign in to comment.