PageRenderTime 37ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 22ms

/tags/release-0.0.0-rc0/hive/external/ql/src/test/queries/clientpositive/database_properties.q

#
text | 26 lines | 16 code | 10 blank | 0 comment | 0 complexity | ef6641380b5032a5a1fc4b35bbdc8822 MD5 | raw file
 1set datanucleus.cache.collections=false;
 2set datanucleus.cache.collections.lazy=false;
 3
 4create database db1;
 5
 6show databases;
 7
 8create database db2 with dbproperties (
 9  'mapred.jobtracker.url'='http://my.jobtracker.com:53000',
10  'hive.warehouse.dir' = '/user/hive/warehouse',
11  'mapred.scratch.dir' = 'hdfs://tmp.dfs.com:50029/tmp');
12
13describe database db2;
14
15describe database extended db2;
16
17
18set datanucleus.cache.collections=false;
19set datanucleus.cache.collections.lazy=false;
20
21alter database db2 set dbproperties (
22  'new.property' = 'some new props',
23  'hive.warehouse.dir' = 'new/warehouse/dir');
24
25describe database extended db2;
26