问题描述
尝试在 Hivesql 数据库中创建索引时遇到错误。你能帮我解决这个问题吗。
我的查询:
CREATE INDEX cp_index_user_id ON TABLE customerprofiles_2018(user_id);
错误:
java.lang.Exception: org.apache.hive.service.cli.HivesqlException: 编译语句时出错:Failed: ParseException line 1:133 无法识别靠近 '' '' '' 的输入
解决方法
我认为您没有为索引处理程序类分配任何名称:
CREATE INDEX cp_index_user_id ON TABLE customerprofiles_2018(user_id) AS 'index.handler.class.name';