title: How to access s3 files using on prem hadoop cluster?
body: <p>I have a cloudera VM and able to set up aws CLI and set up keys.But, I am not able to read s3 files or access s3 files using <strong>hadoop fs -ls s3://gft-ri or any hadoop command</strong>. I could see the directory/files using aws CLI.</p>
  
  <p><strong>Snapshot of the commands:</strong></p>
  
  <pre><code>(base) [cloudera@quickstart conf]$ **aws s3 ls s3://gft-risk-aml-market-dev/**
                             PRE test/
  2019-11-27 04:11:26        458 required
  
  (base) [cloudera@quickstart conf]$ **hdfs dfs -ls s3://gft-risk-aml-market-dev/**
  19/11/27 05:30:45 WARN fs.FileSystem: S3FileSystem is deprecated and will be removed in future releases. Use NativeS3FileSystem or S3AFileSystem instead.
  ls: `s3://gft-risk-aml-market-dev/': No such file or directory
  </code></pre>
  
  <p>I have put the core-site.xml details.</p>
  
  <pre><code>  &lt;property&gt;
      &lt;name&gt;fs.s3.impl&lt;/name&gt;
      &lt;value&gt;org.apache.hadoop.fs.s3.S3FileSystem&lt;/value&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;fs.s3.awsAccessKeyId&lt;/name&gt;
      &lt;value&gt;ANHS&lt;/value&gt;
    &lt;/property&gt;
  
    &lt;property&gt;
      &lt;name&gt;fs.s3.awsSecretAccessKey&lt;/name&gt;
      &lt;value&gt;EOo&lt;/value&gt;
    &lt;/property&gt;
  
     &lt;property&gt;
       &lt;name&gt;fs.s3.path.style.access&lt;/name&gt;
       &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
  
     &lt;property&gt;
      &lt;name&gt;fs.s3.endpoint&lt;/name&gt;
      &lt;value&gt;s3.us-east-1.amazonaws.com&lt;/value&gt;
    &lt;/property&gt;
  
       &lt;property&gt;
          &lt;name&gt;fs.s3.connection.ssl.enabled&lt;/name&gt;
          &lt;value&gt;false&lt;/value&gt;
      &lt;/property&gt;
  </code></pre>