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

Beeline should accept -i option to Initializing a SQL file

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0, 0.11.0, 0.12.0
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None
    • Release Note:
      Document the new feature.
    • Tags:
      TODOC14

      Description

      Hive CLI has -i option. From Hive CLI help:

      ...
       -i <filename>                    Initialization SQL file
      ...
      

      However, Beeline has no such option:

      xzhang@xzlt:~/apa/hive3$ ./packaging/target/apache-hive-0.14.0-SNAPSHOT-bin/apache-hive-0.14.0-SNAPSHOT-bin/bin/beeline -u jdbc:hive2:// -i hive.rc
      ...
      Connected to: Apache Hive (version 0.14.0-SNAPSHOT)
      Driver: Hive JDBC (version 0.14.0-SNAPSHOT)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      -i (No such file or directory)
      Property "url" is required
      Beeline version 0.14.0-SNAPSHOT by Apache Hive
      ...
      

        Attachments

        1. HIVE-6561.4.patch.txt
          13 kB
          Navis
        2. HIVE-6561.3.patch.txt
          11 kB
          Navis
        3. HIVE-6561.2.patch.txt
          11 kB
          Navis
        4. HIVE-6561.1.patch.txt
          10 kB
          Navis

          Issue Links

            Activity

              People

              • Assignee:
                navis Navis
                Reporter:
                xuefuz Xuefu Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: