如何使用 Hive 创建外部表?

How can I create external tables with Hive?

这是我 运行 在 Hive 上的脚本:

CREATE EXTERNAL TABLE 'people'(
    'name' string,
    'surname' string,
    'age' string)
ROW FORMAT SERDE
    'org.apache.hadoop.hive.serde2.avro.AvroSerDe'
STORED AS INPUTFORMAT
    'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'
OUTPUTFORMAT
    'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'
LOCATION
    'gs://directory/subdirectory/'
TBLPROPERTIES (
    'avro.schema.url'='gs://directory/schema.avsc',
    'transient_lastDdlTime'='1644235388');

我收到这个错误: 编译语句时出错:

FAILED: ParseException line 1:22 cannot recognize input near ''people'' '(' ''nam'' in table name

能否请您用反引号 (`) 将它们括起来

CREATE EXTERNAL TABLE `people`(
    `name` string,
    `surname` string,
    `age` string)
...