我是按照为知笔记的代码操作的
代码来自:《HBASE_day05_01_ETL项目需求实例-从AVRO中提取数据转成AVRO》 的 第四节
代码段:
CREATE TABLE IF NOT EXISTS table5
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.avro.AvroSerDe'
WITH SERDEPROPERTIES ('avro.schema.url'='/user/yuxiandi/avro/avsc/table5.avsc')
STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat';
报错图片:
由于图片各种上传不成功,我就直接粘贴报错提示了:
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 Encountered exception determining schema. Returning signal schema to indicate problem: org.codehaus.jackson.JsonParseException: Unexpected character (']' (code 93)): expected a value
at [Source: org.apache.hadoop.hdfs.client.HdfsDataInputStream@66b31d46; line: 12, column: 4])
请大神帮忙解决,谢谢~