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

László Bodor updated HIVE-22671:
--------------------------------
    Assignee: László Bodor
      Status: Patch Available  (was: Open)

> TestHiveCli is flaky
> --------------------
>
>                 Key: HIVE-22671
>                 URL: https://issues.apache.org/jira/browse/HIVE-22671
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Assignee: László Bodor
>            Priority: Major
>         Attachments: HIVE-22671.01.patch
>
>
> Fails while running scripts @Before, the actual problem is  something like 
> this:
> {code}
> 2019-12-24T06:11:16,065 DEBUG [main] exec.Utilities: HDFS dir: /tmp/hive with 
> schema null, permission: rwxr-xr-x
> 2019-12-24T06:11:16,065 ERROR [main] cli.TestHiveCli: Failed due to the 
> error:Connecting to jdbc:hive2://
> Hive Session ID = 92e1327d-4267-4efc-af7d-6bd2deeba7d7
> ivysettings.xml file not found in HIVE_HOME or 
> HIVE_CONF_DIR,/home/hiveptest/34.70.195.43-hiveptest-0/apache-github-source-source/conf/ivysettings.xml
>  will be used
> Error applying authorization policy on hive configuration: The dir: /tmp/hive 
> on HDFS should be writable. Current permissions are: rwxr-xr-x
> Hive Session ID = 5d752eea-9bb5-42b4-953d-750f766fefaa
> ivysettings.xml file not found in HIVE_HOME or 
> HIVE_CONF_DIR,/home/hiveptest/34.70.195.43-hiveptest-0/apache-github-source-source/conf/ivysettings.xml
>  will be used
> Error applying authorization policy on hive configuration: The dir: /tmp/hive 
> on HDFS should be writable. Current permissions are: rwxr-xr-x
> Connection is already closed.
> {code}
> locally it passes:
> {code}
> 2019-12-26T06:23:45,535 DEBUG [main] cli.CLIService: SessionHandle 
> [ee1f45b2-cb74-4b0e-9c4e-5ddbc47a94ae]: closeSession()
> 2019-12-26T06:23:45,540 DEBUG [main] cli.TestHiveCli: Connecting to 
> jdbc:hive2://
> Hive Session ID = feba5d41-796f-406e-a017-bce19c28fe09
> ivysettings.xml file not found in HIVE_HOME or 
> HIVE_CONF_DIR,/home/abstractdog/apache/hive/conf/ivysettings.xml will be used
> ivysettings.xml file not found in HIVE_HOME or 
> HIVE_CONF_DIR,/home/abstractdog/apache/hive/conf/ivysettings.xml will be used
> Connected to: Apache Hive (version 4.0.0-SNAPSHOT)
> Driver: Hive JDBC (version 4.0.0-SNAPSHOT)
> Transaction isolation: TRANSACTION_REPEATABLE_READ
> hive> create database if not exists test;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to