use AMBARI_SERVER_NAME instead of ${NODE_PREFIX}0
wait for self connected agent fixed

$AMBARI_SERVER_NAME was an IP address it was present in json response for /api/v1/hosts
even without any "Hosts". We should look for:

"host_name" : FQDN
fix 'couldn't open session' error caused by PAM

this causes all hadoop services fail to start. They normally start with something as:
```
su -l hdfs -c '....'
```
the PAM configureation at `/etc/pam.c/su-l ` causes some strange errors

To debug these type of errors:
- switch on syslog daemon
- try to do an `echo hello` as the hdfs user
- check logs

```
/etc/init.d/rsyslog start
su -l hdfs -c 'echo myself=$USER'
tail /var/log/secure
```
ignoring files
amb-shell passes additional arguments like  --cmdfile=...