[ 
https://issues.apache.org/jira/browse/SENTRY-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prasad Mujumdar updated SENTRY-489:
-----------------------------------
    Attachment: SENTRY-489.1.patch

> Sentry DB upgrade fails on Oracle with "ORA-00905: missing keyword"
> -------------------------------------------------------------------
>
>                 Key: SENTRY-489
>                 URL: https://issues.apache.org/jira/browse/SENTRY-489
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Prasad Mujumdar
>            Assignee: Prasad Mujumdar
>             Fix For: 1.5.0
>
>         Attachments: SENTRY-489.1.patch
>
>
> Schema Upgrade from 1.4 to 1.5 fails for Oracle backend
> {noformat}
> Error: ORA-00905: missing keyword (state=42000,code=905)
> org.apache.sentry.SentryUserException: Upgrade FAILED! Metastore state would 
> be inconsistent !!
> org.apache.sentry.SentryUserException: Upgrade FAILED! Metastore state would 
> be inconsistent !!
>       at 
> org.apache.sentry.provider.db.tools.SentrySchemaTool.doUpgrade(SentrySchemaTool.java:272)
>       at 
> org.apache.sentry.provider.db.tools.SentrySchemaTool.doUpgrade(SentrySchemaTool.java:240)
>       at 
> org.apache.sentry.provider.db.tools.SentrySchemaTool$CommandImpl.run(SentrySchemaTool.java:555)
>       at org.apache.sentry.SentryMain.main(SentryMain.java:94)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:606)
>       at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>       at 
> org.apache.sentry.provider.db.tools.SentrySchemaTool.runBeeLine(SentrySchemaTool.java:414)
>       at 
> org.apache.sentry.provider.db.tools.SentrySchemaTool.runBeeLine(SentrySchemaTool.java:387)
>       at 
> org.apache.sentry.provider.db.tools.SentrySchemaTool.doUpgrade(SentrySchemaTool.java:267)
>       ... 8 more
> *** Sentry schemaTool failed ***
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to