[ 
https://issues.apache.org/jira/browse/SENTRY-806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anne Yu updated SENTRY-806:
---------------------------
    Attachment: SENTRY-806-1.patch

So I moved the creation code to setupTestStaticConfiguration which setup test 
environments for all hive related tests.

> Fix unit test failure: TestMetastoreEndToEnd.testPartionInsert, 
> java.lang.RuntimeException: Cannot make directory: 
> hdfs://localhost:60362/tmp/hive-jenkins/hive_2015-07-09_21-50-34_878_9035087593722312500-1
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-806
>                 URL: https://issues.apache.org/jira/browse/SENTRY-806
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Anne Yu
>            Assignee: Anne Yu
>             Fix For: 1.4.0
>
>         Attachments: SENTRY-806-0.patch, SENTRY-806-1.patch
>
>
> {code}
> Error Message
> Failed to execute "LOAD DATA LOCAL INPATH '/tmp/1436503814839-0/data/kv1.dat' 
> INTO TABLE db_1.tab2". Driver returned 40000 Error: FAILED: RuntimeException 
> Cannot make directory: 
> hdfs://localhost:60362/tmp/hive-jenkins/hive_2015-07-09_21-50-34_878_9035087593722312500-1
> Stacktrace
> java.io.IOException: Failed to execute "LOAD DATA LOCAL INPATH 
> '/tmp/1436503814839-0/data/kv1.dat' INTO TABLE db_1.tab2". Driver returned 
> 40000 Error: FAILED: RuntimeException Cannot make directory: 
> hdfs://localhost:60362/tmp/hive-jenkins/hive_2015-07-09_21-50-34_878_9035087593722312500-1
>       at 
> org.apache.sentry.tests.e2e.metastore.AbstractMetastoreTestWithStaticConfiguration$1.run(AbstractMetastoreTestWithStaticConfiguration.java:198)
>       at 
> org.apache.sentry.tests.e2e.metastore.AbstractMetastoreTestWithStaticConfiguration$1.run(AbstractMetastoreTestWithStaticConfiguration.java:191)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:415)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
>       at 
> org.apache.sentry.tests.e2e.metastore.AbstractMetastoreTestWithStaticConfiguration.execHiveSQLwithOverlay(AbstractMetastoreTestWithStaticConfiguration.java:191)
>       at 
> org.apache.sentry.tests.e2e.metastore.AbstractMetastoreTestWithStaticConfiguration.execHiveSQL(AbstractMetastoreTestWithStaticConfiguration.java:211)
>       at 
> org.apache.sentry.tests.e2e.metastore.TestMetastoreEndToEnd.testPartionInsert(TestMetastoreEndToEnd.java:518)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to