<?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 Re: beeline command arguments fail in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121217#M83980</link>
    <description>&lt;P&gt;whoops. Thanks for the pickup.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 07:33:20 GMT</pubDate>
    <dc:creator>rbailey</dc:creator>
    <dc:date>2017-02-24T07:33:20Z</dc:date>
    <item>
      <title>beeline command arguments fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121215#M83978</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;I have a knox target that has JDBC connected to it. However although I'm happily connecting interactively, using command arguments for the url seem to be providing grief. I'm using Beeline 1.2.1000.2.5.3.0-37 could this be a bug?&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;PRE&gt;[theuser@knoxhost ~]$ beeline
Beeline version 1.2.1000.2.5.3.0-37 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://knoxhost.domain.com:8443/default;ssl=true;transportMode=http;httpPath=gateway/default/hive theuser secret
Connecting to jdbc:hive2://knoxhost.domain.com:8443/default;ssl=true;transportMode=http;httpPath=gateway/default/hive
Connected to: Apache Hive (version 1.2.1000.2.5.3.0-37)
Driver: Hive JDBC (version 1.2.1000.2.5.3.0-37)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://knoxhost.domain.com&amp;gt;

&lt;/PRE&gt;&lt;P&gt;This does not work:&lt;/P&gt;&lt;PRE&gt;[theuser@knoxhost ~]$ beeline -u 
'jdbc:hive2://knoxhost.domain.com:8443/default;transportMode=http;ssl=true'
 -n theuser -p password (or -w password.txt)
Connecting to jdbc:hive2://knoxhost.domain.com:8443/default;transportMode=http;ssl=true
17/02/23 19:11:01 [main]: ERROR jdbc.HiveConnection: Error opening session
org.apache.thrift.transport.TTransportException: HTTP Response code: 404
  at org.apache.thrift.transport.THttpClient.flushUsingHttpClient(THttpClient.java:262)
  at org.apache.thrift.transport.THttpClient.flush(THttpClient.java:313)
  at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:73)
  at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62)
  at org.apache.hive.service.cli.thrift.TCLIService$Client.send_OpenSession(TCLIService.java:154)
  at org.apache.hive.service.cli.thrift.TCLIService$Client.OpenSession(TCLIService.java:146)
  at org.apache.hive.jdbc.HiveConnection.openSession(HiveConnection.java:552)
  at org.apache.hive.jdbc.HiveConnection.&amp;lt;init&amp;gt;(HiveConnection.java:170)
  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:146)
  at org.apache.hive.beeline.DatabaseConnection.getConnection(DatabaseConnection.java:211)
  at org.apache.hive.beeline.Commands.connect(Commands.java:1190)
  at org.apache.hive.beeline.Commands.connect(Commands.java:1086)
  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:498)
  at org.apache.hive.beeline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:52)
  at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:990)
  at org.apache.hive.beeline.BeeLine.initArgs(BeeLine.java:715)
  at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:777)
  at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:491)
  at org.apache.hive.beeline.BeeLine.main(BeeLine.java:474)
  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:498)
  at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
  at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
Error:
 Could not establish connection to 
jdbc:hive2://knoxhost.domain.com:8443/default;transportMode=http;ssl=true:
 HTTP Response code: 404 (state=08S01,code=0)
Beeline version 1.2.1000.2.5.3.0-37 by Apache Hive
0: jdbc:hive2://knoxhost.domain.com (closed)&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Feb 2017 16:42:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121215#M83978</guid>
      <dc:creator>rbailey</dc:creator>
      <dc:date>2017-02-23T16:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: beeline command arguments fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121216#M83979</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Your attempt that does not work is missing the "httpPath=gateway/default/hive" in the connection string.  Adding that should solve your issue.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:06:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121216#M83979</guid>
      <dc:creator>srementer</dc:creator>
      <dc:date>2017-02-24T07:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: beeline command arguments fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121217#M83980</link>
      <description>&lt;P&gt;whoops. Thanks for the pickup.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 07:33:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121217#M83980</guid>
      <dc:creator>rbailey</dc:creator>
      <dc:date>2017-02-24T07:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: beeline command arguments fail</title>
      <link>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121218#M83981</link>
      <description>&lt;P&gt;Hi, I am facing the same error. My hdp sandbox is kerberized.   &lt;/P&gt;&lt;P&gt;Error: Could not establish connection to jdbc:hive2://sandbox-hdp.hortonworks.com:8443/;ssl=true;sslTrustStore=/var/lib/knox/data-2.6.5.0-292/security/keystores/gateway.jks;trustStorePassword=knox;transportMode=http;httpPath=gateway/default/hive: HTTP Response code: 401 (state=08S01,code=0)
Beeline version 1.2.1000.2.6.5.0-292 by Apache Hive
0: jdbc:hive2://sandbox-hdp.hortonworks.com:8 (closed)&amp;gt;&lt;/P&gt;&lt;P&gt;can you pls help me what I am doing wrong here?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:05:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/beeline-command-arguments-fail/m-p/121218#M83981</guid>
      <dc:creator>cseashok</dc:creator>
      <dc:date>2018-07-25T20:05:56Z</dc:date>
    </item>
  </channel>
</rss>

