/** * Setup ssl configuration on the job configuration to enable hsftp access * from map job. Also copy the ssl configuration file to Distributed cache * * @param job - Reference to job's handle * @throws java.io.IOException - Exception if unable to locate ssl config file */ private void setupSSLConfig(Job job) throws IOException { Configuration configuration = job.getConfiguration(); Path sslConfigPath = new Path(configuration. getResource(inputOptions.getSslConfigurationFile()).toString()); addSSLFilesToDistCache(job, sslConfigPath); configuration.set(DistCpConstants.CONF_LABEL_SSL_CONF, sslConfigPath.getName()); configuration.set(DistCpConstants.CONF_LABEL_SSL_KEYSTORE, sslConfigPath.getName()); }