title: How to split Input Text of Map (Hadoop)?
body: <p>I want to know how can I split a input text in map method (Hadoop).</p>
  
  <p>My input file is like : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>aaaa
  aaaa
  aaaa
  aaaa
  aaaa</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I run this code :</p>
  
  <pre><code>    public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException{
          String[] lines = value.toString().split("\\n");
              paire.set("hi");
              one.set(lines.length);
              context.write(paire,one);
      }
  }
  </code></pre>
  
  <p>The output is : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>hi 1
  hi 1
  hi 1
  hi 1
  hi 1</code></pre>
  </div>
  </div>
  </p>
  
  <p>I don't know why lines.length is equal to 1 and not 5. </p>