Hive
  1. Hive
  2. HIVE-6561

Beeline should accept -i option to Initializing a SQL file

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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
      ...
      
      1. HIVE-6561.1.patch.txt
        10 kB
        Navis
      2. HIVE-6561.2.patch.txt
        11 kB
        Navis
      3. HIVE-6561.3.patch.txt
        11 kB
        Navis
      4. HIVE-6561.4.patch.txt
        13 kB
        Navis

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development