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

Andrew Sherman updated IMPALA-11025:
------------------------------------
    Description: 
Hive complains 'Illegal location for managed table' although location 
'/test-warehouse/managed/insert_only_transactional_table' appears to be within 
database's managed location.
{code}
INFO  : Compiling 
command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4): 
CREATE  TABLE IF NOT EXISTS functional.insert_only_transactional_table (
col1 int
)
STORED AS TEXTFILE
LOCATION '/test-warehouse/managed/insert_only_transactional_table'
TBLPROPERTIES (
'transactional_properties' = 'insert_only',
'transactional' = 'true'
)
INFO  : Semantic Analysis Completed (retrial = false)
INFO  : Created Hive schema: Schema(fieldSchemas:null, properties:null)
INFO  : Completed compiling 
command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4); 
Time taken: 0.025 seconds
INFO  : Executing 
command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4): 
CREATE  TABLE IF NOT EXISTS functional.insert_only_transactional_table (
col1 int
)
STORED AS TEXTFILE
LOCATION '/test-warehouse/managed/insert_only_transactional_table'
TBLPROPERTIES (
'transactional_properties' = 'insert_only',
'transactional' = 'true'
)
INFO  : Starting task [Stage-0:DDL] in serial mode
ERROR : Failed
org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Illegal 
location for managed table, it has to be within database's managed location)
        at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:1170) 
~[hive-exec-3.1.3000.7.1.8.0-393.jar:3.1.3000.7.1.8.0-393]
        at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:1175) 
~[hive-exec-3.1.3000.7.1.8.0-393.jar:3.1.3000.7.1.8.0-393]
{code}
(For full stack see attachment)

  was:
Hive complains ':Illegal location for managed table' although location 
'/test-warehouse/managed/insert_only_transactional_table' appears to be within 
database's managed location.
{code}
INFO  : Compiling 
command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4): 
CREATE  TABLE IF NOT EXISTS functional.insert_only_transactional_table (
col1 int
)
STORED AS TEXTFILE
LOCATION '/test-warehouse/managed/insert_only_transactional_table'
TBLPROPERTIES (
'transactional_properties' = 'insert_only',
'transactional' = 'true'
)
INFO  : Semantic Analysis Completed (retrial = false)
INFO  : Created Hive schema: Schema(fieldSchemas:null, properties:null)
INFO  : Completed compiling 
command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4); 
Time taken: 0.025 seconds
INFO  : Executing 
command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4): 
CREATE  TABLE IF NOT EXISTS functional.insert_only_transactional_table (
col1 int
)
STORED AS TEXTFILE
LOCATION '/test-warehouse/managed/insert_only_transactional_table'
TBLPROPERTIES (
'transactional_properties' = 'insert_only',
'transactional' = 'true'
)
INFO  : Starting task [Stage-0:DDL] in serial mode
ERROR : Failed
org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Illegal 
location for managed table, it has to be within database's managed location)
        at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:1170) 
~[hive-exec-3.1.3000.7.1.8.0-393.jar:3.1.3000.7.1.8.0-393]
        at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:1175) 
~[hive-exec-3.1.3000.7.1.8.0-393.jar:3.1.3000.7.1.8.0-393]
{code}
(For full stack see attachment)


> Creation of  functional.insert_only_transactional_table fails wIth 'illegal 
> location for managed table'
> -------------------------------------------------------------------------------------------------------
>
>                 Key: IMPALA-11025
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11025
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Andrew Sherman
>            Priority: Major
>         Attachments: IMPALA-11025_stack.txt
>
>
> Hive complains 'Illegal location for managed table' although location 
> '/test-warehouse/managed/insert_only_transactional_table' appears to be 
> within database's managed location.
> {code}
> INFO  : Compiling 
> command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4): 
> CREATE  TABLE IF NOT EXISTS functional.insert_only_transactional_table (
> col1 int
> )
> STORED AS TEXTFILE
> LOCATION '/test-warehouse/managed/insert_only_transactional_table'
> TBLPROPERTIES (
> 'transactional_properties' = 'insert_only',
> 'transactional' = 'true'
> )
> INFO  : Semantic Analysis Completed (retrial = false)
> INFO  : Created Hive schema: Schema(fieldSchemas:null, properties:null)
> INFO  : Completed compiling 
> command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4); 
> Time taken: 0.025 seconds
> INFO  : Executing 
> command(queryId=jenkins_20211116193803_e342124e-7a94-4024-b11a-58578cdf2ce4): 
> CREATE  TABLE IF NOT EXISTS functional.insert_only_transactional_table (
> col1 int
> )
> STORED AS TEXTFILE
> LOCATION '/test-warehouse/managed/insert_only_transactional_table'
> TBLPROPERTIES (
> 'transactional_properties' = 'insert_only',
> 'transactional' = 'true'
> )
> INFO  : Starting task [Stage-0:DDL] in serial mode
> ERROR : Failed
> org.apache.hadoop.hive.ql.metadata.HiveException: 
> MetaException(message:Illegal location for managed table, it has to be within 
> database's managed location)
>       at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:1170) 
> ~[hive-exec-3.1.3000.7.1.8.0-393.jar:3.1.3000.7.1.8.0-393]
>       at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:1175) 
> ~[hive-exec-3.1.3000.7.1.8.0-393.jar:3.1.3000.7.1.8.0-393]
> {code}
> (For full stack see attachment)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to