Domanda

hive> CREATE TABLE page_view(viewTime INT, userid BIGINT,
>                 page_url STRING, referrer_url STRING,
>                 ip STRING COMMENT 'IP Address of the User')
> COMMENT 'This is the page view table'
> PARTITIONED BY(dt STRING, country STRING)
> STORED AS SEQUENCEFILE;

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient

È stato utile?

Soluzione

I got the solution for my question, I follow the below method

Set hive.metastore.schema.verification property in hive-site.xml to true, by default it is false.

For further details check this Hive Schema Tool

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top