- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Facing transport exception in hive
- Labels:
-
Apache Hive
Created ‎03-18-2020 06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I have implement almost 300 lines of hive query. The query template is as below.
- Insert into targetTable
- Select
- col1,col2...........cols
- .
- .
- .
- .
- (Almost 300 lines in select query with lots of case when statemnet)
- From source table
My observation is that it works without giving any error in apache zeppeline. But when i trying to execute it through beeline it's failing with transport exception response code 500.
Other observation,when i remove few number of columns from select query in that also it works fine.
I do not understand why query is failing ?
I need to know the reason behind failure?
Thanks in advance
Created ‎03-19-2020 03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Initially , My query was not converted in one line.Due to which i was facing syntax error in beeline itself.
I converted complete big query into one line and working now.
Created ‎03-18-2020 04:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please share the error from Beeline and HS2 log? Without them, it is difficult to see what is going on.
Cheers
Eric
Created ‎03-18-2020 11:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply. I am getting below error in hiveserver log.
10:20:02 START Executing current statement for: 'SCIP_Test_Env' [Hive]
10:20:03 FAILED [SELECT - 0 rows, 0.574 secs] [Code: 0, SQL State: 08S01] org.apache.hive.org.apache.thrift.transport.TTransportException: HTTP Response code: 500
Created ‎03-19-2020 03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Initially , My query was not converted in one line.Due to which i was facing syntax error in beeline itself.
I converted complete big query into one line and working now.
