public class Utils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Utils.JdbcConnectionParams |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATABASE
Hive's default database name
|
static String |
DEFAULT_PORT
If host is provided, without a port.
|
static org.apache.commons.logging.Log |
LOG |
static String |
URL_PREFIX
The required prefix for the connection URL.
|
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static Utils.JdbcConnectionParams |
parseURL(String uri)
Parse JDBC connection URL
The new format of the URL is:
jdbc:hive2://
|
static void |
verifySuccess(TStatus status) |
static void |
verifySuccess(TStatus status,
boolean withInfo) |
static void |
verifySuccessWithInfo(TStatus status) |
public static final org.apache.commons.logging.Log LOG
public static final String URL_PREFIX
public static final String DEFAULT_PORT
public static final String DEFAULT_DATABASE
public static void verifySuccessWithInfo(TStatus status) throws SQLException
SQLException
public static void verifySuccess(TStatus status) throws SQLException
SQLException
public static void verifySuccess(TStatus status, boolean withInfo) throws SQLException
SQLException
public static Utils.JdbcConnectionParams parseURL(String uri) throws JdbcUriParseException, SQLException, ZooKeeperHiveClientException
uri
- SQLException
JdbcUriParseException
ZooKeeperHiveClientException
Copyright © 2017 The Apache Software Foundation. All rights reserved.