Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-02-2018 01:59 PM
Is it possible to list the nodes for an application id from command line?
ie i want to see all the nodes involved in a job - from the command line.
Appreciate the feedback.
Created 04-02-2018 02:22 PM
Not sure about direct command.
But you can use some shell script.
Script:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
for a in `yarn applicationattempt -list application_1522234336469_0002|grep appattempt|awk '{print $1}'`
do
echo "Attempt $a nodes"
for b in `yarn container -list $a|grep 'container_'| awk '{print $15}'`
do
echo "Node: $b"
done
done
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Created 04-02-2018 02:22 PM
Not sure about direct command.
But you can use some shell script.
Script:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
for a in `yarn applicationattempt -list application_1522234336469_0002|grep appattempt|awk '{print $1}'`
do
echo "Attempt $a nodes"
for b in `yarn container -list $a|grep 'container_'| awk '{print $15}'`
do
echo "Node: $b"
done
done
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Created 04-02-2018 05:04 PM
that was cool. thanks!!!
Created 04-02-2018 06:25 PM
Created 04-19-2018 12:44 PM
@n cIf above information helped you, Could you please accept answer?