title: How to capture the count of processed records from Sqoop import?
body: <p>To replicate the data from my DB to S3 I am using below command. </p>
  
  <pre><code>sqoop import -D mapreduce.job.name= xxx-D mapred.job.queue.name=user -Dhadoop.security.credential.provider.path=&lt;path&gt; -Dfs.s3a.server-side-encryption-algorithm=&lt;xx&gt;--options-file &lt;path&gt; --query "select col1,ID,UPDATETIME from db.table where UPDATETIME between to_date('2015-09-11 00:00:00','yyyy/mm/dd hh24:mi:ss') and to_date('2018-05-24 04:28:16','yyyy/mm/dd hh24:mi:ss') and \$CONDITIONS" --hive-delims-replacement ' ' --direct --m 1 --split-by ID  --target-dir &lt;s3//path&gt;
  </code></pre>
  
  <p>I am able to replicate the data but I need to get the count of processed data from the same command without using other commands like eval. Because meanwhile other records may got ingested into the source.</p>
  
  <p>What I want is to capture this record count: </p>
  
  <pre><code>18/05/21 22:55:55 INFO mapreduce.ImportJobBase: Transferred 0 bytes in 47.9229 seconds (0 bytes/sec)
  18/05/21 22:55:55 INFO mapreduce.ImportJobBase: Retrieved 33372 records.
  </code></pre>