Path path = fileSplit.getPath();
FileSystem fs = path.getFileSystem(conf);
InputStream in = null;
if (fs instanceof NativeS3FileSystem) {
if (conf.getBoolean(ARCFileInputFormat.USE_S3_INPUTSTREAM, false)) {
in = new S3InputStream(path.toUri(), conf.get("fs.s3n.awsAccessKeyId"), conf.get("fs.s3n.awsSecretAccessKey"), 1048576);
}
else {
Jets3tProperties properties = Jets3tProperties.getInstance(org.jets3t.service.Constants.JETS3T_PROPERTIES_FILENAME);
properties.setProperty("s3service.https-only","false");
}