If you may received an info message retrying connect to server already tried number of times when running the samza jobs in Linux,

2016-01-02 10:44:41 Client [INFO] Retrying connect to server: Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)

Solution :

You need to check the yarn-site.xml file to be set the resource-manager hostname and port or check your hostname.

To know your hostname
$ hostname

Open the /etc/hosts file and append the below line,

$ sudo vim /etc/hosts  samzahost

then, update in your host file: yarn-site.xml