[
https://issues.apache.org/jira/browse/SENTRY-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14633679#comment-14633679
]
Anne Yu edited comment on SENTRY-806 at 7/20/15 3:12 PM:
---------------------------------------------------------
[~lskuff], yeah, I print out all the folders under "/" with their permissions
to debug this issue, so found out tmp doesn't exist. I will put it into
Context.java so other tests can be benefited. Searched online, seems like for
older version of hadoop, this issue happened for other components. (OOZIE-768).
If tmp doesn't exist, mkdir will be ignored.
was (Author: anneyu):
[~lskuff], yeah, I print out all the folders under "/" with their permissions
to debug this issue, so found out tmp doesn't exist. I will put it into
Context.java so other tests can be benefited. Searched online, seems like for
older version of hadoop, this issue happened for other components. (OOZIE-768)
> 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)