title: How to print rdd in python in spark
body: <p>I have two files on HDFS and I just want to join these two files on a column say employee id. </p>
  
  <p>I am trying to simply print the files to make sure we are reading that correctly from HDFS. </p>
  
  <pre><code>lines = sc.textFile("hdfs://ip:8020/emp.txt")
  print lines.count()
  </code></pre>
  
  <p>I have tried foreach and println functions as well and I am not able to display file data. 
  I am working in python and totally new to both python and spark as well. </p>