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

Beeline requires newline at the end of each query in a file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 0.13.1
    • 0.14.0
    • None
    • None

    Description

      When using the -f option on beeline its required to have a newline at the end of each query otherwise the connection is closed before the query is run.

      $ cat test.hql
      show databases;%
      $ beeline -u jdbc:hive2://localhost:10000 --incremental=true -f test.hql
      scan complete in 3ms
      Connecting to jdbc:hive2://localhost:10000
      Connected to: Apache Hive (version 0.13.1)
      Driver: Hive JDBC (version 0.13.1)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      Beeline version 0.13.1 by Apache Hive
      0: jdbc:hive2://localhost:10000> show databases;Closing: 0: jdbc:hive2://localhost:10000
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tnorden thomas norden
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: