Member since
08-30-2017
3
Posts
0
Kudos Received
0
Solutions
11-29-2017
05:31 PM
Thanks for answering this question. I'll try to create an udf to populate it. There was no problem in creating another table, i tried to do that and to convert the data via spark, but it didn't worked (ClassCastException)
... View more
11-27-2017
04:10 PM
I've a very complex table structure in hive, let's say that it's like the following table: create table dirceu ( a struct<b:string,c:string>); Now I do need to add another subcolumn to the a column, and it should have the structure b,c and d, I'm trying to do it with the following alter table:
alter table dirceu change column a a struct<b:string,c:string, d:string>; But this throw the following error: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. The following columns have types incompatible with the existing columns in their respective positions :
a (state=08S01,code=1) Is there a way to do this using alter table? I know that I can do it using create table and copy the data, but I would like to know if there is another way to do it. I'm using hive: 2.1.0.2.6.1.0-129 HortonWorks: HDP-2.6.1.0 This question is also in StackOverflow
... View more
Labels:
- Labels:
-
Apache Hive
08-30-2017
01:13 PM
Hi, I'm trying to configure this in my ambari 2.5.0.3 with Hive 1.2.1. When I try to connect to hive using jdbc the following error is thrown: WARN jdbc.HiveConnection: Failed to connect to localhost:10500 Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10500: Peer indicated failure: Error validating the login (state=08S01,code=0)
... View more