问题描述
beeline登录Hive,想要映射一张HBase表为Hive外表,但创建Hive外表的时候失败,报错如下:
21/04/02 12:42:22 INFO : Starting task [Stage-0:DDL] in serial mode
21/04/02 12:42:22 ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: MetaException(message:org.apache.hadoop.hive.serde2.SerDeException org.apache.hadoop.hive.hbase.HBaseSerDe: columns has 24 elements while hbase.columns.mapping has 25 elements (counting the key if implicit))
21/04/02 12:42:22 INFO : Completed executing command(queryId=hive_20210402124222_dd35ccde-1440-46af-8223-6939b7c60ce1); Time taken: 0.072 seconds
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: MetaException(message:org.apac