HIVE-16181: Make logic for hdfs directory location extraction more generic, in webhcat test driver
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/7449c507 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/7449c507 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/7449c507 Branch: refs/heads/hive-14535 Commit: 7449c507a68732f6553dcad5bafdf4b5c4462ffe Parents: fab335a Author: Daniel Dai <[email protected]> Authored: Tue Mar 14 15:23:30 2017 -0700 Committer: Daniel Dai <[email protected]> Committed: Tue Mar 14 15:23:30 2017 -0700 ---------------------------------------------------------------------- hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/7449c507/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm ---------------------------------------------------------------------- diff --git a/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm b/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm index ea718c3..66a6ca1 100644 --- a/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm +++ b/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm @@ -1035,7 +1035,7 @@ sub wrongExecutionMode($$) sub setLocationPermGroup{ my ($self, $job_info, $testCmd, $log) = @_; my $location = $job_info->{'location'}; - $location =~ /hdfs.*:\d+(\/.*)\/(.*)/; + $location =~ /hdfs:\/\/[^\/]*(\/.*)\/(.*)/; my $dir = $1; my $file = $2;
