[
https://issues.apache.org/jira/browse/SENTRY-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14633138#comment-14633138
]
Lenni Kuff commented on SENTRY-806:
-----------------------------------
[~anneyu] - Are you sure that this directory does not already exist, I thought
with the latest Hadoop bits the mini cluster creates this when it starts up. If
not, then I suggest putting this code right after the mini-cluster starts so it
can be leveraged by other 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
>
>
> {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)