0
votes

I am facing error while try to create index in HiveSql database. Could you please help me on this.

My Query:

CREATE INDEX cp_index_user_id ON TABLE customerprofiles_2018(user_id);

Error:

java.lang.Exception: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: ParseException line 1:133 cannot recognize input near '' '' ''

1
which version of hive are you using? Indexing has been removed from hive since version 3 - eshirvana
I am using Hive 2.0 @eshirvana - balams

1 Answers

0
votes

I think you are not assigning any name to index handler class :

CREATE INDEX cp_index_user_id ON TABLE customerprofiles_2018(user_id) AS 'index.handler.class.name';