You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2013/10/14 22:14:34 UTC
svn commit: r1532054 -
/hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
Author: thejas
Date: Mon Oct 14 20:14:34 2013
New Revision: 1532054
URL: http://svn.apache.org/r1532054
Log:
HIVE-5535 : [WebHCat] Webhcat e2e test JOBS_2 fail due to permission when hdfs umask setting is 022 (Daniel Dai via Thejas Nair)
Modified:
hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
Modified: hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm?rev=1532054&r1=1532053&r2=1532054&view=diff
==============================================================================
--- hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm (original)
+++ hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm Mon Oct 14 20:14:34 2013
@@ -207,6 +207,17 @@ sub globalSetup
die "Cannot create temporary directory " . $globalHash->{'tmpPath'} .
" " . "$ERRNO\n";
+ my $testCmdBasics = $self->copyTestBasicConfig($globalHash);
+ $testCmdBasics->{'method'} = 'PUT';
+ $testCmdBasics->{'url'} = ':WEBHDFS_URL:/webhdfs/v1' . $globalHash->{'outpath'} . '?op=MKDIRS&permission=777';
+ if (!defined $globalHash->{'is_secure_mode'} || $globalHash->{'is_secure_mode'} !~ /y.*/i) {
+ $testCmdBasics->{'url'} = $testCmdBasics->{'url'} . '&user.name=' . $globalHash->{'current_user'};
+ }
+ my $curl_result = $self->execCurlCmd($testCmdBasics, "", $log);
+ my $json = new JSON;
+ $json->utf8->decode($curl_result->{'body'})->{'boolean'} or
+ die "Cannot create hdfs directory " . $globalHash->{'outpath'} .
+ " " . "$ERRNO\n";
}
###############################################################################