hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-18012) fix ct_noperm_loc test
Date Sat, 11 Nov 2017 04:42:01 GMT

    [ https://issues.apache.org/jira/browse/HIVE-18012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16248325#comment-16248325
] 

Akira Ajisaka commented on HIVE-18012:
--------------------------------------

Here are two questions:
1. When runnning the test by {{mvn test -Dtest=TestNegativeCliDriver -Dqfile=ct_noperm_loc.q}}
the test was skipped. I had to modify testconfiguration.properties to run the test. Is it
correct?
2. After modifying the testconfiguration.properties, the test fails when creating {{hdfs:///tmp/ct_noperm_loc}}.

{noformat:title=ct_noperm_loc.q.out.orig}
Command -mkdir -p hdfs:///tmp/ct_noperm_loc failed with exit code = 1
Query returned non-zero code: 1, cause: null
{noformat}

Am I missing something?

> fix ct_noperm_loc test
> ----------------------
>
>                 Key: HIVE-18012
>                 URL: https://issues.apache.org/jira/browse/HIVE-18012
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>         Attachments: HIVE-18012.001.patch, HIVE-18012.02.patch
>
>
> the goal of the test is to check that hive doesn't let user1 to create a table with a
location under an unowned path.
> I've bisected this test to be broken by 5250ef450430fcdeed0a2cb7a770f48647987cd3 (HIVE-12408).
> the original exception was (which have been by that sole masked line):
> {code}
> FAILED: HiveAccessControlException Permission denied: Principal [name=user1, type=USER]
does not have following privileges for operation CREATETABLE [[OBJECT OWNERSHIP] on Object
[type=DFS_URI, name=hdfs://localhost:35753/tmp/ct_noperm_loc_foo0]]
> {code}
> the current semanticexception shouldnt be accepted ; because it's unrelated to the tests
goal.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message