9. How do I check if a node is a coordinator node or a worker node?ΒΆ

Use either of these two methods:

  • Run the nodeinfo command as described in Run Utility Commands in a Cluster.

  • Add the following code in the node bootstrap script:

    #!/bin/bash
    
    source /usr/lib/hustler/bin/qubole-bash-lib.sh
    is_master=`nodeinfo is_master`
    if [[ "$is_master" == "1" ]]; then
    -----your code here--