Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22671

TestHiveCli is flaky

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None

    Description

      Fails while running scripts @Before, the actual problem is something like this:

      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.
      

      locally it passes:

      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;
      

      Attachments

        1. HIVE-22671.01.patch
          0.7 kB
          László Bodor

        Issue Links

          Activity

            People

              abstractdog László Bodor
              abstractdog László Bodor
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: