Right. If you want to change an operator property according to the app id,
you can do it in the setup method in the operator, using the operator
context.
David
On Wed, May 25, 2016 at 11:26 AM, Munagala Ramanath
wrote:
> You can't do it in populateDAG since the id is not known when that functio
You can't do it in populateDAG since the id is not known when that function
runs.
You need to do it in the operator as suggested by Gaurav:
String appid = Context.OperatorContext.getValue(Context.DAGContext.
APPLICATION_ID);
Ram
On Wed, May 25, 2016 at 11:00 AM, Ganelin, Ilya wrote:
> Hi guys
The populateDAG function is invoked before it is submitted to YARN. So the
app id not assigned yet.
Hi guys - when I try to retrieve the application id with:
("{ApplicationId=" + dag.getValue(Context.DAGContext.APPLICATION_ID) +
"}\n”) the applicationId is reported as null.
I’m trying to run thi
Hey Ilya,
The application id is assigned to an application once it is launched.
In populateDag() phase, the logical plan is being created but the actual
yarn application is not created so there isn't an application id created
yet which is why it is null.
Chandni
On Wed, May 25, 2016 at 11:00 AM,
Hi guys - when I try to retrieve the application id with:
("{ApplicationId=" + dag.getValue(Context.DAGContext.APPLICATION_ID) + "}\n”)
the applicationId is reported as null.
I’m trying to run this inside of the “populateDAG” function.
Am I doing something wrong?
On 5/19/16, 11:20 AM, "Gaura