[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
   Resolution: Fixed
Fix Version/s: 2.1.0
   Status: Resolved  (was: Patch Available)

Thanks [~sershe] for the review.

> Hive Metastore start failed on Oracle DB
> 
>
> Key: HIVE-13784
> URL: https://issues.apache.org/jira/browse/HIVE-13784
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore
>Affects Versions: 2.1.0
>Reporter: Hari Sankar Sivarama Subramaniyan
>Assignee: Hari Sankar Sivarama Subramaniyan
>Priority: Blocker
> Fix For: 2.1.0
>
> Attachments: HIVE-13784.1.patch
>
>
> NO PRECOMMIT TESTS
> During hive metastore start, hive is trying to execute this script 
> {{hive-schema-2.1.0.oracle.sql}}:
> {code}
> Metastore connection URL:  jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Metastore Connection Driver :  oracle.jdbc.driver.OracleDriver
> Metastore connection User: hiveuser
> Starting metastore schema initialization to 2.1.0
> Initialization script hive-schema-2.1.0.oracle.sql
> Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Connected to: Oracle (version Oracle Database 11g Express Edition Release 
> 11.2.0.2.0 - 64bit Production)
> Driver: Oracle JDBC driver (version 11.2.0.2.0)
> Transaction isolation: TRANSACTION_READ_COMMITTED
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
> Autocommit status: true
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
> SEQ 
> UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
> No rows affected (0.208 seconds)
> ..
> {code}
> but inthe end of this script we are getting Error:
> {code}
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
> CONSTRAINTS_PARENT_T 
> BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
> Error: ORA-00972: identifier is too long (state=42000,code=972)
> Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
>   at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
>   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.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
>   ... 8 more
> *** schemaTool failed ***
> {code}
> We have a problem with too long identifier: 
> {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} (31 symbol), it should be 30 symbols of 
> max length.



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


[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
Description: 
NO PRECOMMIT TESTS

During hive metastore start, hive is trying to execute this script 
{{hive-schema-2.1.0.oracle.sql}}:
{code}
Metastore connection URL:jdbc:oracle:thin:@//172.22.114.220:1521/XE
Metastore Connection Driver :oracle.jdbc.driver.OracleDriver
Metastore connection User:   hiveuser
Starting metastore schema initialization to 2.1.0
Initialization script hive-schema-2.1.0.oracle.sql
Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
Connected to: Oracle (version Oracle Database 11g Express Edition Release 
11.2.0.2.0 - 64bit Production)
Driver: Oracle JDBC driver (version 11.2.0.2.0)
Transaction isolation: TRANSACTION_READ_COMMITTED
0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
Autocommit status: true
0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
SEQ 
UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
No rows affected (0.208 seconds)
..
{code}

but inthe end of this script we are getting Error:
{code}
0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
CONSTRAINTS_PARENT_T 
BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
Error: ORA-00972: identifier is too long (state=42000,code=972)

Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
FAILED! Metastore state would be inconsistent !!
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
FAILED! Metastore state would be inconsistent !!
at 
org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
at 
org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
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.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.io.IOException: Schema script failed, errorcode 2
at 
org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
at 
org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
at 
org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
... 8 more
*** schemaTool failed ***
{code}
We have a problem with too long identifier: {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} 
(31 symbol), it should be 30 symbols of max length.

  was:
During hive metastore start, hive is trying to execute this script 
{{hive-schema-2.1.0.oracle.sql}}:
{code}
Metastore connection URL:jdbc:oracle:thin:@//172.22.114.220:1521/XE
Metastore Connection Driver :oracle.jdbc.driver.OracleDriver
Metastore connection User:   hiveuser
Starting metastore schema initialization to 2.1.0
Initialization script hive-schema-2.1.0.oracle.sql
Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
Connected to: Oracle (version Oracle Database 11g Express Edition Release 
11.2.0.2.0 - 64bit Production)
Driver: Oracle JDBC driver (version 11.2.0.2.0)
Transaction isolation: TRANSACTION_READ_COMMITTED
0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
Autocommit status: true
0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
SEQ 
UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
No rows affected (0.208 seconds)
..
{code}

but inthe end of this script we are getting Error:
{code}
0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
CONSTRAINTS_PARENT_T 
BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
Error: ORA-00972: identifier is too long (state=42000,code=972)

Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
FAILED! Metastore state would be inconsistent !!
org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
FAILED! Metastore state would be inconsistent !!
at 
org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
at 
org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 

[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
Status: Patch Available  (was: Open)

> Hive Metastore start failed on Oracle DB
> 
>
> Key: HIVE-13784
> URL: https://issues.apache.org/jira/browse/HIVE-13784
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore
>Affects Versions: 2.1.0
>Reporter: Hari Sankar Sivarama Subramaniyan
>Assignee: Hari Sankar Sivarama Subramaniyan
>Priority: Blocker
> Attachments: HIVE-13784.1.patch
>
>
> During hive metastore start, hive is trying to execute this script 
> {{hive-schema-2.1.0.oracle.sql}}:
> {code}
> Metastore connection URL:  jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Metastore Connection Driver :  oracle.jdbc.driver.OracleDriver
> Metastore connection User: hiveuser
> Starting metastore schema initialization to 2.1.0
> Initialization script hive-schema-2.1.0.oracle.sql
> Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Connected to: Oracle (version Oracle Database 11g Express Edition Release 
> 11.2.0.2.0 - 64bit Production)
> Driver: Oracle JDBC driver (version 11.2.0.2.0)
> Transaction isolation: TRANSACTION_READ_COMMITTED
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
> Autocommit status: true
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
> SEQ 
> UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
> No rows affected (0.208 seconds)
> ..
> {code}
> but inthe end of this script we are getting Error:
> {code}
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
> CONSTRAINTS_PARENT_T 
> BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
> Error: ORA-00972: identifier is too long (state=42000,code=972)
> Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
>   at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
>   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.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
>   ... 8 more
> *** schemaTool failed ***
> {code}
> We have a problem with too long identifier: 
> {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} (31 symbol), it should be 30 symbols of 
> max length.



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


[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
Component/s: Metastore

> Hive Metastore start failed on Oracle DB
> 
>
> Key: HIVE-13784
> URL: https://issues.apache.org/jira/browse/HIVE-13784
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore
>Affects Versions: 2.1.0
>Reporter: Hari Sankar Sivarama Subramaniyan
>Assignee: Hari Sankar Sivarama Subramaniyan
>Priority: Blocker
> Attachments: HIVE-13784.1.patch
>
>
> During hive metastore start, hive is trying to execute this script 
> {{hive-schema-2.1.0.oracle.sql}}:
> {code}
> Metastore connection URL:  jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Metastore Connection Driver :  oracle.jdbc.driver.OracleDriver
> Metastore connection User: hiveuser
> Starting metastore schema initialization to 2.1.0
> Initialization script hive-schema-2.1.0.oracle.sql
> Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Connected to: Oracle (version Oracle Database 11g Express Edition Release 
> 11.2.0.2.0 - 64bit Production)
> Driver: Oracle JDBC driver (version 11.2.0.2.0)
> Transaction isolation: TRANSACTION_READ_COMMITTED
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
> Autocommit status: true
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
> SEQ 
> UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
> No rows affected (0.208 seconds)
> ..
> {code}
> but inthe end of this script we are getting Error:
> {code}
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
> CONSTRAINTS_PARENT_T 
> BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
> Error: ORA-00972: identifier is too long (state=42000,code=972)
> Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
>   at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
>   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.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
>   ... 8 more
> *** schemaTool failed ***
> {code}
> We have a problem with too long identifier: 
> {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} (31 symbol), it should be 30 symbols of 
> max length.



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


[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
Affects Version/s: 2.1.0

> Hive Metastore start failed on Oracle DB
> 
>
> Key: HIVE-13784
> URL: https://issues.apache.org/jira/browse/HIVE-13784
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore
>Affects Versions: 2.1.0
>Reporter: Hari Sankar Sivarama Subramaniyan
>Assignee: Hari Sankar Sivarama Subramaniyan
> Attachments: HIVE-13784.1.patch
>
>
> During hive metastore start, hive is trying to execute this script 
> {{hive-schema-2.1.0.oracle.sql}}:
> {code}
> Metastore connection URL:  jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Metastore Connection Driver :  oracle.jdbc.driver.OracleDriver
> Metastore connection User: hiveuser
> Starting metastore schema initialization to 2.1.0
> Initialization script hive-schema-2.1.0.oracle.sql
> Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Connected to: Oracle (version Oracle Database 11g Express Edition Release 
> 11.2.0.2.0 - 64bit Production)
> Driver: Oracle JDBC driver (version 11.2.0.2.0)
> Transaction isolation: TRANSACTION_READ_COMMITTED
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
> Autocommit status: true
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
> SEQ 
> UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
> No rows affected (0.208 seconds)
> ..
> {code}
> but inthe end of this script we are getting Error:
> {code}
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
> CONSTRAINTS_PARENT_T 
> BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
> Error: ORA-00972: identifier is too long (state=42000,code=972)
> Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
>   at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
>   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.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
>   ... 8 more
> *** schemaTool failed ***
> {code}
> We have a problem with too long identifier: 
> {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} (31 symbol), it should be 30 symbols of 
> max length.



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


[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
Attachment: HIVE-13784.1.patch

> Hive Metastore start failed on Oracle DB
> 
>
> Key: HIVE-13784
> URL: https://issues.apache.org/jira/browse/HIVE-13784
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore
>Affects Versions: 2.1.0
>Reporter: Hari Sankar Sivarama Subramaniyan
>Assignee: Hari Sankar Sivarama Subramaniyan
>Priority: Blocker
> Attachments: HIVE-13784.1.patch
>
>
> During hive metastore start, hive is trying to execute this script 
> {{hive-schema-2.1.0.oracle.sql}}:
> {code}
> Metastore connection URL:  jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Metastore Connection Driver :  oracle.jdbc.driver.OracleDriver
> Metastore connection User: hiveuser
> Starting metastore schema initialization to 2.1.0
> Initialization script hive-schema-2.1.0.oracle.sql
> Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Connected to: Oracle (version Oracle Database 11g Express Edition Release 
> 11.2.0.2.0 - 64bit Production)
> Driver: Oracle JDBC driver (version 11.2.0.2.0)
> Transaction isolation: TRANSACTION_READ_COMMITTED
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
> Autocommit status: true
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
> SEQ 
> UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
> No rows affected (0.208 seconds)
> ..
> {code}
> but inthe end of this script we are getting Error:
> {code}
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
> CONSTRAINTS_PARENT_T 
> BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
> Error: ORA-00972: identifier is too long (state=42000,code=972)
> Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
>   at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
>   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.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
>   ... 8 more
> *** schemaTool failed ***
> {code}
> We have a problem with too long identifier: 
> {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} (31 symbol), it should be 30 symbols of 
> max length.



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


[jira] [Updated] (HIVE-13784) Hive Metastore start failed on Oracle DB

2016-05-18 Thread Hari Sankar Sivarama Subramaniyan (JIRA)

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

Hari Sankar Sivarama Subramaniyan updated HIVE-13784:
-
Priority: Blocker  (was: Major)

> Hive Metastore start failed on Oracle DB
> 
>
> Key: HIVE-13784
> URL: https://issues.apache.org/jira/browse/HIVE-13784
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore
>Affects Versions: 2.1.0
>Reporter: Hari Sankar Sivarama Subramaniyan
>Assignee: Hari Sankar Sivarama Subramaniyan
>Priority: Blocker
> Attachments: HIVE-13784.1.patch
>
>
> During hive metastore start, hive is trying to execute this script 
> {{hive-schema-2.1.0.oracle.sql}}:
> {code}
> Metastore connection URL:  jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Metastore Connection Driver :  oracle.jdbc.driver.OracleDriver
> Metastore connection User: hiveuser
> Starting metastore schema initialization to 2.1.0
> Initialization script hive-schema-2.1.0.oracle.sql
> Connecting to jdbc:oracle:thin:@//172.22.114.220:1521/XE
> Connected to: Oracle (version Oracle Database 11g Express Edition Release 
> 11.2.0.2.0 - 64bit Production)
> Driver: Oracle JDBC driver (version 11.2.0.2.0)
> Transaction isolation: TRANSACTION_READ_COMMITTED
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> !autocommit on
> Autocommit status: true
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE TABLE SEQUENCE_TABLE ( 
> SEQ 
> UENCE_NAME VARCHAR2(255) NOT NULL, NEXT_VAL NUMBER NOT NULL )
> No rows affected (0.208 seconds)
> ..
> {code}
> but inthe end of this script we are getting Error:
> {code}
> 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE> CREATE INDEX 
> CONSTRAINTS_PARENT_T 
> BL_ID_INDEX ON KEY_CONSTRAINTS(PARENT_TBL_ID)
> Error: ORA-00972: identifier is too long (state=42000,code=972)
> Closing: 0: jdbc:oracle:thin:@//172.22.114.220:1521/XE
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
> org.apache.hadoop.hive.metastore.HiveMetaException: Schema initialization 
> FAILED! Metastore state would be inconsistent !!
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:291)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:264)
>   at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:505)
>   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.run(RunJar.java:221)
>   at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: java.io.IOException: Schema script failed, errorcode 2
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:390)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.runBeeLine(HiveSchemaTool.java:347)
>   at 
> org.apache.hive.beeline.HiveSchemaTool.doInit(HiveSchemaTool.java:287)
>   ... 8 more
> *** schemaTool failed ***
> {code}
> We have a problem with too long identifier: 
> {{CONSTRAINTS_PARENT_TBL_ID_INDEX}} (31 symbol), it should be 30 symbols of 
> max length.



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