Если вы хотите увидеть план выполнения вашей работы, вы можете сделать это:
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
...
System.out.println(env.getExecutionPlan());
env.execute();
Вы захотите захватить этот план в конце работы, так как в этот момент работа график полностью построен.
Это будет выглядеть примерно так:
{
"nodes": [
{
"id": 1,
"type": "Source: Collection Source",
"pact": "Data Source",
"contents": "Source: Collection Source",
"parallelism": 1
},
{
"id": 3,
"type": "Map",
"pact": "Operator",
"contents": "Map",
"parallelism": 4,
"predecessors": [
{
"id": 1,
"ship_strategy": "REBALANCE",
"side": "second"
}
]
},
{
"id": 5,
"type": "Source: Collection Source",
"pact": "Data Source",
"contents": "Source: Collection Source",
"parallelism": 1
},
{
"id": 6,
"type": "Flat Map",
"pact": "Operator",
"contents": "Flat Map",
"parallelism": 4,
"predecessors": [
{
"id": 5,
"ship_strategy": "REBALANCE",
"side": "second"
}
]
},
{
"id": 8,
"type": "Co-Process-Broadcast-Keyed",
"pact": "Operator",
"contents": "Co-Process-Broadcast-Keyed",
"parallelism": 8,
"predecessors": [
{
"id": 3,
"ship_strategy": "HASH",
"side": "second"
},
{
"id": 6,
"ship_strategy": "BROADCAST",
"side": "second"
}
]
},
{
"id": 9,
"type": "Sink: Print to Std. Out",
"pact": "Data Sink",
"contents": "Sink: Print to Std. Out",
"parallelism": 8,
"predecessors": [
{
"id": 8,
"ship_strategy": "FORWARD",
"side": "second"
}
]
}
]
}