<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Hive http transport mode problem in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-http-transport-mode-problem/m-p/136746#M23386</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to get Hive working with http transport mode with beeline client. We are using HDP 2.3.4.&lt;/P&gt;&lt;P&gt;hive.server2.transport.mode=http&lt;/P&gt;&lt;P&gt;hive.server2.thrift.http.port=10001&lt;/P&gt;&lt;P&gt;hive.server2.thrift.http.path=cliservice&lt;/P&gt;&lt;P&gt;Hiveserver2 does not use any authentication methods.&lt;/P&gt;&lt;P&gt;I'm trying to connect to hiveserver2 using beeline client from the same host where hiveserver2 is running.&lt;/P&gt;&lt;P&gt;I'm getting strange error message and I was not able to find anything relevant from documentation. &lt;/P&gt;&lt;P&gt;
Connection error: &lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice &lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice &lt;/P&gt;&lt;P&gt;Enter username for jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: &lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: &lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: Invalid status 72 (state=08S01,code=0)
java.sql.SQLException: &lt;/P&gt;&lt;P&gt;Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: Invalid status 72
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:210)
at org.apache.hive.jdbc.HiveConnection.&amp;lt;init&amp;gt;(HiveConnection.java:156)
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at org.apache.hive.beeline.DatabaseConnection.connect(DatabaseConnection.java:142)
at org.apache.hive.beeline.DatabaseConnection.getConnection(DatabaseConnection.java:207)
at org.apache.hive.beeline.Commands.connect(Commands.java:1149)
at org.apache.hive.beeline.Commands.connect(Commands.java:1070)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hive.beeline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:52)
at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:980)
at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:823)
at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:781)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:485)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:468)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: org.apache.thrift.transport.TTransportException: Invalid status 72
at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:232)
at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:184)
at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:185)
... 24 more
0: jdbc:hive2://localhost:10001 (closed)&amp;gt;&lt;/P&gt;&lt;P&gt;NB! I'm able to connect to hiveserver2 if transport mode is configured to use as binary. Also I don't use any username and password on connection using beeline. &lt;/P&gt;&lt;P&gt;Maybe someone can direct me to right direction getting it to work. &lt;/P&gt;&lt;P&gt;
Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 16:45:48 GMT</pubDate>
    <dc:creator>margus_kiting</dc:creator>
    <dc:date>2016-03-21T16:45:48Z</dc:date>
    <item>
      <title>Hive http transport mode problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-http-transport-mode-problem/m-p/136746#M23386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to get Hive working with http transport mode with beeline client. We are using HDP 2.3.4.&lt;/P&gt;&lt;P&gt;hive.server2.transport.mode=http&lt;/P&gt;&lt;P&gt;hive.server2.thrift.http.port=10001&lt;/P&gt;&lt;P&gt;hive.server2.thrift.http.path=cliservice&lt;/P&gt;&lt;P&gt;Hiveserver2 does not use any authentication methods.&lt;/P&gt;&lt;P&gt;I'm trying to connect to hiveserver2 using beeline client from the same host where hiveserver2 is running.&lt;/P&gt;&lt;P&gt;I'm getting strange error message and I was not able to find anything relevant from documentation. &lt;/P&gt;&lt;P&gt;
Connection error: &lt;/P&gt;&lt;P&gt;beeline&amp;gt; !connect jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice &lt;/P&gt;&lt;P&gt;Connecting to jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice &lt;/P&gt;&lt;P&gt;Enter username for jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: &lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: &lt;/P&gt;&lt;P&gt;Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: Invalid status 72 (state=08S01,code=0)
java.sql.SQLException: &lt;/P&gt;&lt;P&gt;Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10001?transportMode=http;httpPath=cliservice: Invalid status 72
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:210)
at org.apache.hive.jdbc.HiveConnection.&amp;lt;init&amp;gt;(HiveConnection.java:156)
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at org.apache.hive.beeline.DatabaseConnection.connect(DatabaseConnection.java:142)
at org.apache.hive.beeline.DatabaseConnection.getConnection(DatabaseConnection.java:207)
at org.apache.hive.beeline.Commands.connect(Commands.java:1149)
at org.apache.hive.beeline.Commands.connect(Commands.java:1070)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hive.beeline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:52)
at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:980)
at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:823)
at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:781)
at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:485)
at org.apache.hive.beeline.BeeLine.main(BeeLine.java:468)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: org.apache.thrift.transport.TTransportException: Invalid status 72
at org.apache.thrift.transport.TSaslTransport.sendAndThrowMessage(TSaslTransport.java:232)
at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:184)
at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:185)
... 24 more
0: jdbc:hive2://localhost:10001 (closed)&amp;gt;&lt;/P&gt;&lt;P&gt;NB! I'm able to connect to hiveserver2 if transport mode is configured to use as binary. Also I don't use any username and password on connection using beeline. &lt;/P&gt;&lt;P&gt;Maybe someone can direct me to right direction getting it to work. &lt;/P&gt;&lt;P&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:45:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-http-transport-mode-problem/m-p/136746#M23386</guid>
      <dc:creator>margus_kiting</dc:creator>
      <dc:date>2016-03-21T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hive http transport mode problem</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-http-transport-mode-problem/m-p/136747#M23387</link>
      <description>&lt;P&gt;
	Hello &lt;A rel="user" href="https://community.cloudera.com/users/2961/marguskiting.html" nodeid="2961"&gt;@Margus Kiting&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;
	From what I could gather, Error 72 is a bad url issue, try:&lt;/P&gt;&lt;PRE&gt;!connect jdbc:hive2://localhost:10001/default;transportMode=http;httpPath=cliservice&lt;/PRE&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexander Lukyanov &lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 03:00:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-http-transport-mode-problem/m-p/136747#M23387</guid>
      <dc:creator>alukyanov04</dc:creator>
      <dc:date>2016-03-23T03:00:14Z</dc:date>
    </item>
  </channel>
</rss>

