Skip to content

Commit

Permalink
dont resolve destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Edwards committed Jun 8, 2018
1 parent b2ab19c commit c671fb9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public Path copy(String source, String destination) {
Path localLocation = new Path(temporaryDirectory.toString(), fileName(source));
copyToLocal(sourceLocation, localLocation);

FileSystemPathResolver destinationFileSystemPathResolver = new FileSystemPathResolver(replicaHiveConf);
Path destinationLocation = destinationFileSystemPathResolver
.resolveNameServices(destinationFileSystemPathResolver.resolveScheme(new Path(destination, fileName(source))));
Path destinationLocation = new Path(destination, fileName(source));
copyToRemote(localLocation, destinationLocation);

LOG.info("Avro schema has been copied from '{}' to '{}'", sourceLocation, destinationLocation);
Expand Down

0 comments on commit c671fb9

Please sign in to comment.