|
19 | 19 |
|
20 | 20 | <configuration> |
21 | 21 |
|
| 22 | +<property> |
| 23 | + <name>hive.in.test</name> |
| 24 | + <value>true</value> |
| 25 | + <description>Internal marker for test. Used for masking env-dependent values</description> |
| 26 | +</property> |
| 27 | + |
22 | 28 | <!-- Hive Configuration can either be stored in this file or in the hadoop configuration files --> |
23 | 29 | <!-- that are implied by Hadoop setup variables. --> |
24 | 30 | <!-- Aside from Hadoop setup variables - this file is provided as a convenience so that Hive --> |
|
28 | 34 | <!-- Hive Execution Parameters --> |
29 | 35 | <property> |
30 | 36 | <name>hadoop.tmp.dir</name> |
31 | | - <value>${build.dir.hive}/test/hadoop-${user.name}</value> |
| 37 | + <value>${test.tmp.dir}/hadoop-tmp</value> |
32 | 38 | <description>A base for other temporary directories.</description> |
33 | 39 | </property> |
34 | 40 |
|
|
42 | 48 |
|
43 | 49 | <property> |
44 | 50 | <name>hive.exec.scratchdir</name> |
45 | | - <value>${build.dir}/scratchdir</value> |
| 51 | + <value>${test.tmp.dir}/scratchdir</value> |
46 | 52 | <description>Scratch space for Hive jobs</description> |
47 | 53 | </property> |
48 | 54 |
|
49 | 55 | <property> |
50 | 56 | <name>hive.exec.local.scratchdir</name> |
51 | | - <value>${build.dir}/localscratchdir/</value> |
| 57 | + <value>${test.tmp.dir}/localscratchdir/</value> |
52 | 58 | <description>Local scratch space for Hive jobs</description> |
53 | 59 | </property> |
54 | 60 |
|
55 | 61 | <property> |
56 | 62 | <name>javax.jdo.option.ConnectionURL</name> |
57 | | - <!-- note: variable substituion not working here because it's loaded by jdo, not Hive --> |
58 | | - <value>jdbc:derby:;databaseName=../build/test/junit_metastore_db;create=true</value> |
| 63 | + <value>jdbc:derby:;databaseName=${test.tmp.dir}/junit_metastore_db;create=true</value> |
59 | 64 | </property> |
60 | 65 |
|
| 66 | +<property> |
| 67 | + <name>hive.stats.dbconnectionstring</name> |
| 68 | + <value>jdbc:derby:;databaseName=${test.tmp.dir}/TempStatsStore;create=true</value> |
| 69 | +</property> |
| 70 | + |
| 71 | + |
61 | 72 | <property> |
62 | 73 | <name>javax.jdo.option.ConnectionDriverName</name> |
63 | 74 | <value>org.apache.derby.jdbc.EmbeddedDriver</value> |
|
82 | 93 |
|
83 | 94 | <property> |
84 | 95 | <name>hive.metastore.metadb.dir</name> |
85 | | - <value>file://${build.dir}/test/data/metadb/</value> |
| 96 | + <value>file://${test.tmp.dir}/metadb/</value> |
86 | 97 | <description> |
87 | 98 | Required by metastore server or if the uris argument below is not supplied |
88 | 99 | </description> |
89 | 100 | </property> |
90 | 101 |
|
91 | 102 | <property> |
92 | 103 | <name>test.log.dir</name> |
93 | | - <value>${build.dir}/test/logs</value> |
94 | | - <description></description> |
95 | | -</property> |
96 | | - |
97 | | -<property> |
98 | | - <name>test.src.dir</name> |
99 | | - <value>file://${build.dir}/src/test</value> |
| 104 | + <value>${test.tmp.dir}/log/</value> |
100 | 105 | <description></description> |
101 | 106 | </property> |
102 | 107 |
|
103 | 108 | <property> |
104 | 109 | <name>test.data.files</name> |
105 | | - <value>${user.dir}/../data/files</value> |
106 | | - <description></description> |
107 | | -</property> |
108 | | - |
109 | | -<property> |
110 | | - <name>test.query.file1</name> |
111 | | - <value>file://${user.dir}/../ql/src/test/org/apache/hadoop/hive/ql/input2.q</value> |
112 | | - <value></value> |
| 110 | + <value>${hive.root}/data/files</value> |
113 | 111 | <description></description> |
114 | 112 | </property> |
115 | 113 |
|
116 | 114 | <property> |
117 | 115 | <name>hive.jar.path</name> |
118 | | - <value>${build.dir.hive}/ql/hive-exec-${version}.jar</value> |
| 116 | + <value>${maven.local.repository}/org/apache/hive/hive-exec/${hive.version}/hive-exec-${hive.version}.jar</value> |
119 | 117 | <description></description> |
120 | 118 | </property> |
121 | 119 |
|
|
127 | 125 |
|
128 | 126 | <property> |
129 | 127 | <name>hive.querylog.location</name> |
130 | | - <value>${build.dir}/tmp</value> |
| 128 | + <value>${test.tmp.dir}/tmp</value> |
131 | 129 | <description>Location of the structured hive logs</description> |
132 | 130 | </property> |
133 | 131 |
|
|
143 | 141 | <description>Post Execute Hook for Tests</description> |
144 | 142 | </property> |
145 | 143 |
|
146 | | -<property> |
147 | | - <name>hive.task.progress</name> |
148 | | - <value>false</value> |
149 | | - <description>Track progress of a task</description> |
150 | | -</property> |
151 | | - |
152 | 144 | <property> |
153 | 145 | <name>hive.support.concurrency</name> |
154 | 146 | <value>true</value> |
155 | 147 | <description>Whether hive supports concurrency or not. A zookeeper instance must be up and running for the default hive lock manager to support read-write locks.</description> |
156 | 148 | </property> |
157 | 149 |
|
| 150 | +<property> |
| 151 | + <key>hive.unlock.numretries</key> |
| 152 | + <value>2</value> |
| 153 | + <description>The number of times you want to retry to do one unlock</description> |
| 154 | +</property> |
| 155 | + |
| 156 | +<property> |
| 157 | + <key>hive.lock.sleep.between.retries</key> |
| 158 | + <value>2</value> |
| 159 | + <description>The sleep time (in seconds) between various retries</description> |
| 160 | +</property> |
| 161 | + |
| 162 | + |
158 | 163 | <property> |
159 | 164 | <name>fs.pfile.impl</name> |
160 | 165 | <value>org.apache.hadoop.fs.ProxyLocalFileSystem</value> |
|
194 | 199 | <description>The default SerDe hive will use for the rcfile format</description> |
195 | 200 | </property> |
196 | 201 |
|
| 202 | +<property> |
| 203 | + <name>hive.stats.dbclass</name> |
| 204 | + <value>jdbc:derby</value> |
| 205 | + <description>The storage for temporary stats generated by tasks. Currently, jdbc, hbase and counter types are supported</description> |
| 206 | +</property> |
| 207 | + |
| 208 | +<property> |
| 209 | + <name>hive.stats.key.prefix.reserve.length</name> |
| 210 | + <value>0</value> |
| 211 | +</property> |
| 212 | + |
| 213 | +<property> |
| 214 | + <name>hive.conf.restricted.list</name> |
| 215 | + <value>dummy.config.value</value> |
| 216 | + <description>Using dummy config value above because you cannot override config with empty value</description> |
| 217 | +</property> |
| 218 | + |
197 | 219 | </configuration> |
0 commit comments