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: 0.0.0.0/0.0.0.0:8032. 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
samzahost


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


$ sudo vim /etc/hosts

127.0.0.1  samzahost


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


  <property>
    <name>yarn.resourcemanager.hostname</name>
    <value>127.0.0.1</value>
  </property>