Hive Error when using python UDF: An error occurred when trying to close the Operator running your custom script

2018-07-10 Thread Kangfei Zhao
Hi, I'm a freshman of Hive and try to use the UDF of python script. I wrote a simple projection function in add.py #!/usr/local/python/bin/python import sys import string try: line = sys.stdin.readline() a, b = string.split(line, "\t") print a except: print sys.exc

Re: Alter table using Thrift client

2018-07-10 Thread Sylvester Steele
To add more information: I also tried: EnvironmentContext context = new EnvironmentContext(); context.setProperties(ImmutableMap.of("hive.metastore.disallow.incompatible.col.type.changes", "false")); client.alter_table_with_environment_context(hiveSchema, table.getTableName(), table, context); I

Alter table using Thrift client

2018-07-10 Thread Sylvester Steele
Hello, I am using hive-metastore jar version 1.2.1 and Hive version 2.3.2. I'd like to make incompatible schema changes to my Hive tables. The change I'm trying to make is to drop a column, which I am doing like so: table.getSd().setCols(remaining_cols). I'm dropping an int column. The column fol