If you have access to see Hadoop's conf files, open core-site.xml to find the name node from the below property.
<property>
<name>fs.default.name</name>
<value>hdfs://ec2-1-1-1-1.compute-1.amazonaws.com:9000</value>
</property>
Open mapred-site.xml to find the job tracker.
<property>
<name>mapred.job.tracker</name>
<value>ec2-1-1-1-1.compute-1.amazonaws.com:54311</value>
</property>
Then your values will be.
nameNode=hdfs://ec2-1-1-1-1.compute-1.amazonaws.com:9000
jobTracker=ec2-1-1-1-1.compute-1.amazonaws.com:54311