FAQ
Author: thejas
Date: Wed Apr 15 22:42:37 2015
New Revision: 1673976

URL: http://svn.apache.org/r1673976
Log:
HIVE-10290 : Add negative test case to modify a non-existent config value when hive security authorization is enabled. (Hari Sankar Sivarama Subramaniyan via Thejas Nair)

Added:
     hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q
     hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out

Added: hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q?rev=1673976&view=auto
==============================================================================
--- hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q (added)
+++ hive/trunk/ql/src/test/queries/clientnegative/authorization_set_nonexistent_conf.q Wed Apr 15 22:42:37 2015
@@ -0,0 +1,7 @@
+set hive.test.authz.sstd.hs2.mode=true;
+set hive.security.authorization.enabled=true;
+set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory;
+
+-- run a sql query to initialize authorization, then try setting a non-existent config param
+use default;
+set hive.exec.reduce.max=1;

Added: hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out?rev=1673976&view=auto
==============================================================================
--- hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out (added)
+++ hive/trunk/ql/src/test/results/clientnegative/authorization_set_nonexistent_conf.q.out Wed Apr 15 22:42:37 2015
@@ -0,0 +1,9 @@
+PREHOOK: query: -- run a sql query to initialize authorization, then try setting a non-existent config param
+use default
+PREHOOK: type: SWITCHDATABASE
+PREHOOK: Input: database:default
+POSTHOOK: query: -- run a sql query to initialize authorization, then try setting a non-existent config param
+use default
+POSTHOOK: type: SWITCHDATABASE
+POSTHOOK: Input: database:default
+Query returned non-zero code: 1, cause: hive configuration hive.exec.reduce.max does not exists.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedApr 15, '15 at 10:42p
activeApr 15, '15 at 10:42p
posts1
users1
websitehive.apache.org

1 user in discussion

Thejas: 1 post

People

Translate

site design / logo © 2021 Grokbase