Description
When YARN responds with or accepts JSON, numbers & booleans are being represented as strings which can cause parsing problems.
Resource values look like
{
"application-id":"application_1404198295326_0001",
"maximum-resource-capability":
}
Instead of
{
"application-id":"application_1404198295326_0001",
"maximum-resource-capability":
}
When I POST to start a job, numeric values are represented as numbers:
"local-resources":
{
"entry":
[
{
"key":"AppMaster.jar",
"value":
}
]
},
Instead of
"local-resources":
{
"entry":
[
{
"key":"AppMaster.jar",
"value":
}
]
},
Similarly, Boolean values are also represented as strings:
"keep-containers-across-application-attempts":"false"
Instead of
"keep-containers-across-application-attempts":false