Skip to content

Commit 9fcf4bb

Browse files
committed
fix hive config
1 parent b6bcfd9 commit 9fcf4bb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,6 @@ public void open(Map<String, String> sessionConfMap) throws HiveSQLException {
185185
LOG.error(msg, e);
186186
throw new HiveSQLException(msg, e);
187187
}
188-
try {
189-
sessionHive = Hive.get(getHiveConf());
190-
} catch (HiveException e) {
191-
throw new HiveSQLException("Failed to get metastore connection", e);
192-
}
193188
// Process global init file: .hiverc
194189
processGlobalInitFile();
195190
// Set fetch size in session conf map
@@ -198,6 +193,12 @@ public void open(Map<String, String> sessionConfMap) throws HiveSQLException {
198193
if (sessionConfMap != null) {
199194
configureSession(sessionConfMap);
200195
}
196+
197+
try {
198+
sessionHive = Hive.get(getHiveConf());
199+
} catch (HiveException e) {
200+
throw new HiveSQLException("Failed to get metastore connection", e);
201+
}
201202
lastAccessTime = System.currentTimeMillis();
202203
}
203204

0 commit comments

Comments
 (0)