if (sparkSession != null && sparkSessionManager != null) { try { sparkSessionManager.returnSession(sparkSession); } catch (HiveException ex) { LOG.error("Failed to return the session to SessionManager: " + ex, ex);
if (sparkSession != null && sparkSessionManager != null) { try { sparkSessionManager.returnSession(sparkSession); } catch (HiveException ex) { LOG.error("Failed to return the session to SessionManager: " + ex, ex);
rc = close(rc); try { sparkSessionManager.returnSession(sparkSession); } catch (HiveException ex) { LOG.error("Failed to return the session to SessionManager", ex);
rc = close(rc); try { sparkSessionManager.returnSession(sparkSession); } catch (HiveException ex) { LOG.error("Failed to return the session to SessionManager", ex);
if (sparkSession != null && sparkSessionManager != null) { try { sparkSessionManager.returnSession(sparkSession); } catch (HiveException ex) { LOG.error("Failed to return the session to SessionManager: " + ex, ex);
rc = close(rc); try { sparkSessionManager.returnSession(sparkSession); } catch (HiveException ex) { LOG.error("Failed to return the session to SessionManager", ex);