You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Chaoran Yu <yu...@gmail.com> on 2018/03/28 04:58:19 UTC

Hive master branch broken?

Hi,

   I made some changes to a local Hive repo based on the latest master
branch. But somehow I got the following error when running a "CREATE TABLE"
statement in Hive shell:

org.apache.hadoop.hive.ql.metadata.HiveException:
MetaException(message:Insert of object
"org.apache.hadoop.hive.metastore.model.MSerDeInfo@ace2408" using statement
"INSERT INTO SERDES
(SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",SERDE_TYPE,SLIB,SERIALIZER_CLASS)
VALUES (?,?,?,?,?,?,?)" failed : 'DESCRIPTION' is not a column in table or
VTI 'APP.SERDES'.)
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Insert of
object "org.apache.hadoop.hive.metastore.model.MSerDeInfo@ace2408" using
statement "INSERT INTO SERDES
(SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",SERDE_TYPE,SLIB,SERIALIZER_CLASS)
VALUES (?,?,?,?,?,?,?)" failed : 'DESCRIPTION' is not a column in table or
VTI 'APP.SERDES'.)

No matter what table name or schema I create, I got the same error. I
remember testing my changes about three weeks ago using the master branch
back then, everything was working. It only started failing today after I
merged the latest commits in master.

Is anyone aware of recent commits that might break this write code path?
And do we know when the next release of Hive is coming out?

Thank you,
Chaoran Yu

Re: Hive master branch broken?

Posted by Naveen Gangam <ng...@cloudera.com>.
Hi Chaoran,
You will have to use the scripts from "standalone-metastore/src/main/sql/"
directory instead of the ones from the old "metastore/scripts/upgrade"
directory. The issue is that the package.jdo reflects the new changes in
the schema where as the old schema files do not have these changes.

The simplest way I found was to, after running a full build, "cp
standalone-metastore/src/main/sql/derby/*.sql
packaging/target/apache-*/apache*/scripts/metastore/derby/" and then use
schematool to install the schema.

Hope this helps.

Thanks
Naveen

On Wed, Mar 28, 2018 at 10:11 AM, Chaoran Yu <yu...@gmail.com>
wrote:

> Did you mean running "./bin/schematool -dbType derby -initSchema”?
>
> That didn’t help.
>
>
> On Mar 28, 2018, at 02:09, Mahesh Kumar Behera <mb...@hortonworks.com>
> wrote:
>
> Try rebuilding your metastore db using the schema tool ..
>
> *From: *Chaoran Yu <yu...@gmail.com>
> *Reply-To: *"user@hive.apache.org" <us...@hive.apache.org>
> *Date: *Wednesday, March 28, 2018 at 10:53 AM
> *To: *"user@hive.apache.org" <us...@hive.apache.org>
> *Subject: *Hive master branch broken?
>
> Hi,
>
>    I made some changes to a local Hive repo based on the latest master
> branch. But somehow I got the following error when running a "CREATE TABLE"
> statement in Hive shell:
>
> org.apache.hadoop.hive.ql.metadata.HiveException:
> MetaException(message:Insert of object "org.apache.hadoop.hive.
> metastore.model.MSerDeInfo@ace2408" using statement "INSERT INTO SERDES
> (SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",
> SERDE_TYPE,SLIB,SERIALIZER_CLASS) VALUES (?,?,?,?,?,?,?)" failed :
> 'DESCRIPTION' is not a column in table or VTI 'APP.SERDES'.)
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.
> MetaException(message:Insert of object "org.apache.hadoop.hive.
> metastore.model.MSerDeInfo@ace2408" using statement "INSERT INTO SERDES
> (SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",
> SERDE_TYPE,SLIB,SERIALIZER_CLASS) VALUES (?,?,?,?,?,?,?)" failed :
> 'DESCRIPTION' is not a column in table or VTI 'APP.SERDES'.)
>
> No matter what table name or schema I create, I got the same error. I
> remember testing my changes about three weeks ago using the master branch
> back then, everything was working. It only started failing today after I
> merged the latest commits in master.
>
> Is anyone aware of recent commits that might break this write code path?
> And do we know when the next release of Hive is coming out?
>
> Thank you,
> Chaoran Yu
>
>
>

Re: Hive master branch broken?

Posted by Chaoran Yu <yu...@gmail.com>.
Did you mean running "./bin/schematool -dbType derby -initSchema”?

That didn’t help.


> On Mar 28, 2018, at 02:09, Mahesh Kumar Behera <mb...@hortonworks.com> wrote:
> 
> Try rebuilding your metastore db using the schema tool ..
>  
> From: Chaoran Yu <yu...@gmail.com>
> Reply-To: "user@hive.apache.org" <us...@hive.apache.org>
> Date: Wednesday, March 28, 2018 at 10:53 AM
> To: "user@hive.apache.org" <us...@hive.apache.org>
> Subject: Hive master branch broken?
>  
> Hi,  <>
>  
>    I made some changes to a local Hive repo based on the latest master branch. But somehow I got the following error when running a "CREATE TABLE" statement in Hive shell:
>  
> org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Insert of object "org.apache.hadoop.hive.metastore.model.MSerDeInfo@ace2408" using statement "INSERT INTO SERDES (SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",SERDE_TYPE,SLIB,SERIALIZER_CLASS) VALUES (?,?,?,?,?,?,?)" failed : 'DESCRIPTION' is not a column in table or VTI 'APP.SERDES'.)
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Insert of object "org.apache.hadoop.hive.metastore.model.MSerDeInfo@ace2408" using statement "INSERT INTO SERDES (SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",SERDE_TYPE,SLIB,SERIALIZER_CLASS) VALUES (?,?,?,?,?,?,?)" failed : 'DESCRIPTION' is not a column in table or VTI 'APP.SERDES'.)
>  
> No matter what table name or schema I create, I got the same error. I remember testing my changes about three weeks ago using the master branch back then, everything was working. It only started failing today after I merged the latest commits in master. 
>  
> Is anyone aware of recent commits that might break this write code path?
> And do we know when the next release of Hive is coming out?
>  
> Thank you,
> Chaoran Yu


Re: Hive master branch broken?

Posted by Mahesh Kumar Behera <mb...@hortonworks.com>.
Try rebuilding your metastore db using the schema tool ..

From: Chaoran Yu <yu...@gmail.com>
Reply-To: "user@hive.apache.org" <us...@hive.apache.org>
Date: Wednesday, March 28, 2018 at 10:53 AM
To: "user@hive.apache.org" <us...@hive.apache.org>
Subject: Hive master branch broken?

Hi,

   I made some changes to a local Hive repo based on the latest master branch. But somehow I got the following error when running a "CREATE TABLE" statement in Hive shell:

org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Insert of object "org.apache.hadoop.hive.metastore.model.MSerDeInfo@ace2408" using statement "INSERT INTO SERDES (SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",SERDE_TYPE,SLIB,SERIALIZER_CLASS) VALUES (?,?,?,?,?,?,?)" failed : 'DESCRIPTION' is not a column in table or VTI 'APP.SERDES'.)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Insert of object "org.apache.hadoop.hive.metastore.model.MSerDeInfo@ace2408" using statement "INSERT INTO SERDES (SERDE_ID,DESCRIPTION,DESERIALIZER_CLASS,"NAME",SERDE_TYPE,SLIB,SERIALIZER_CLASS) VALUES (?,?,?,?,?,?,?)" failed : 'DESCRIPTION' is not a column in table or VTI 'APP.SERDES'.)

No matter what table name or schema I create, I got the same error. I remember testing my changes about three weeks ago using the master branch back then, everything was working. It only started failing today after I merged the latest commits in master.

Is anyone aware of recent commits that might break this write code path?
And do we know when the next release of Hive is coming out?

Thank you,
Chaoran Yu