Quantcast
Channel: Toad for Hadoop Forum - Recent Threads
Viewing all articles
Browse latest Browse all 114

Hive connection doesn't work in HTTP Mode (HDP 2.3)

$
0
0

Hi,

I tried to connect in HTTP Mode:

-) without SSL and Kerberos directly on HiveServer2

-) with SSL and AD via Knox

In both cases, i have an error very strange "An exception was caught.
org.apache.http.impl.cookie.BasicClientCookie cannot be cast to org.apache.http.cookie.Cookie" (Cookie is an interface implemented by BasicClientCookie)

extract of the log:

2016-05-04 20:52:45 INFO  DefaultExceptionParser:58 - com.dell.tfh.control.connection.test.TestException
    at com.dell.tfh.control.connection.test.HiveTester.testConnection(HiveTester.java:42)
    at com.dell.tfh.control.connection.TestableConfiguration.testConfiguration(TestableConfiguration.java:45)
    at com.dell.tfh.control.service.HadoopConnectionService.testConfiguration(HadoopConnectionService.java:561)
    at com.dell.tfh.gui.commons.handler.CheckStateHandler$1.runJob(CheckStateHandler.java:90)
    at com.dell.tfh.gui.commons.jobs.AbstractToadJob.run(AbstractToadJob.java:146)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.security.PrivilegedActionException: com.dell.tfh.library.hadoop.exception.HadoopDriverException: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject: Could not create http connection to jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject. org.apache.http.client.ClientProtocolException
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Unknown Source)
    at com.dell.tfh.control.hive.JDBCClient.createClient(JDBCClient.java:345)
    at com.dell.tfh.control.hive.JDBCClient.testConnection(JDBCClient.java:1810)
    at com.dell.tfh.control.connection.test.HiveTester.testConnection(HiveTester.java:40)
    ... 5 more
Caused by: com.dell.tfh.library.hadoop.exception.HadoopDriverException: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject: Could not create http connection to jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject. org.apache.http.client.ClientProtocolException
    at com.dell.tfh.library.hive.hdp2.HiveDriverHDP2.newHiveConnection(HiveDriverHDP2.java:112)
    at com.dell.tfh.control.hive.JDBCClient$1.run(JDBCClient.java:348)
    ... 10 more
Caused by: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject: Could not create http connection to jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject. org.apache.http.client.ClientProtocolException
    at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:231)
    at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:176)
    at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at com.dell.tfh.library.hive.hdp2.HiveDriverHDP2.newHiveConnection(HiveDriverHDP2.java:109)
    ... 11 more
Caused by: org.apache.thrift.transport.TTransportException: Could not create http connection to jdbc:hive2://xxx:10001/;principal=hive/xxx@yyy;sasl.qop=auth-conf;transportMode=http;httpPath=cliservice;auth=kerberos;kerberosAuthType=fromSubject. org.apache.http.client.ClientProtocolException
    at org.apache.hive.jdbc.HiveConnection.createHttpTransport(HiveConnection.java:276)
    at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:201)
    ... 16 more
Caused by: org.apache.thrift.transport.TTransportException: org.apache.http.client.ClientProtocolException
    at org.apache.thrift.transport.THttpClient.flushUsingHttpClient(THttpClient.java:297)
    at org.apache.thrift.transport.THttpClient.flush(THttpClient.java:313)
    at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
    at org.apache.hive.service.cli.thrift.TCLIService$Client.send_CloseSession(TCLIService.java:173)
    at org.apache.hive.service.cli.thrift.TCLIService$Client.CloseSession(TCLIService.java:165)
    at org.apache.hive.jdbc.HiveConnection.createHttpTransport(HiveConnection.java:267)
    ... 17 more
Caused by: org.apache.http.client.ClientProtocolException
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:188)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    at org.apache.thrift.transport.THttpClient.flushUsingHttpClient(THttpClient.java:251)
    ... 22 more


(I replaced host by xxx and domain by yyy)

Best regards,


Viewing all articles
Browse latest Browse all 114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>