You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Takashi Sakairi <SA...@jp.ibm.com> on 2016/12/12 09:16:06 UTC
Can Beeline handle HTTP redirect?
Hi,
When I tried to connect to URI that redirected to other URI, Beeline
showed me the following error message:
Error: Could not open client transport with JDBC Uri: jdbc:hive2://<...>:
Could not create http connection to jdbc:hive2://<...>. HTTP Response
code: 302 (state=08S01,code=0)
I want to know whether Beeline can handle HTTP redirect or not. I was
wondering if some of Beeline experts can answer my question?
Cheers,
Takashi
Re: Can Beeline handle HTTP redirect?
Posted by Takashi Sakairi <SA...@jp.ibm.com>.
Hi Gopal,
Thank you very much for your answer.
Cheers,
Takashi
From: Gopal Vijayaraghavan <go...@apache.org>
To: "user@hive.apache.org" <us...@hive.apache.org>
Date: 2016/12/22 18:27
Subject: Re: Can Beeline handle HTTP redirect?
Sent by: Gopal Vijayaraghavan <go...@hortonworks.com>
> I want to know whether Beeline can handle HTTP redirect or not. I was
wondering if some of Beeline experts can answer my question?
Beeline uses the hive-jdbc driver, which is the one actually handling
network connections.
That driver in turn, uses a standard
org.apache.http.impl.client.HttpClients to talk to the servers.
You can probably dig through the code usage and find out if it is allowing
302 or not (POST + 100 Continue is another question to answer by
experimenting).
https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L348
Cheers,
Gopal
Re: Can Beeline handle HTTP redirect?
Posted by Gopal Vijayaraghavan <go...@apache.org>.
> I want to know whether Beeline can handle HTTP redirect or not. I was wondering if some of Beeline experts can answer my question?
Beeline uses the hive-jdbc driver, which is the one actually handling network connections.
That driver in turn, uses a standard org.apache.http.impl.client.HttpClients to talk to the servers.
You can probably dig through the code usage and find out if it is allowing 302 or not (POST + 100 Continue is another question to answer by experimenting).
https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L348
Cheers,
Gopal
Re: Can Beeline handle HTTP redirect?
Posted by Takashi Sakairi <SA...@jp.ibm.com>.
Hi,
I want to know whether Beeline can handle HTTP redirect or not. I was
wondering if some of Beeline experts can answer my question?
Cheers,
Takashi
From: Takashi Sakairi/Japan/IBM@IBMJP
To: user@hive.apache.org
Date: 2016/12/12 18:18
Subject: Can Beeline handle HTTP redirect?
Hi,
When I tried to connect to URI that redirected to other URI, Beeline
showed me the following error message:
Error: Could not open client transport with JDBC Uri: jdbc:hive2://<...>:
Could not create http connection to jdbc:hive2://<...>. HTTP Response
code: 302 (state=08S01,code=0)
I want to know whether Beeline can handle HTTP redirect or not. I was
wondering if some of Beeline experts can answer my question?
Cheers,
Takashi