private static void writeStoreToLocal(Configuration configuration, String hdfsLoc, String localDest)
      throws IOException, URISyntaxException {
    try {
      // Make sure the local resources directory is created
      File localDir = new File(localDest);
      if(!localDir.exists()) {
        if(!localDir.mkdirs()) {
          throw new IOException("Unable to create local directory, " + localDest);
        }
      }
      URI uri = new URI(hdfsLoc);
      FileSystem fs = FileSystem.get(new URI(hdfsLoc), configuration);
      fs.copyToLocalFile(new Path(uri.toString()), new Path(localDest));
    } catch (URISyntaxException e) {
      throw new IOException("Unable to download store", e);
    }
  }
Copies Kafka SSL properties from source configuration to target property map.
<p>
It only copies SSL properties that are present in the source and not present in the target. It is useful to
propagate global configurations to the Kafka client but also account for use-cases where table properties are not
using the Hive specific prefixes ({@link #CONSUMER_CONFIGURATION_PREFIX}, {@link #PRODUCER_CONFIGURATION_PREFIX}).
</p>
@param source the configuration from which we will get the properties 
@param target the property map to which we will set the properties
kafka-handler/src/java/org/apache/hadoop/hive/kafka/KafkaUtils.java