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.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

          Thejas M Nair made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mohit Sabharwal made changes -
          Link This issue relates to HIVE-5867 [ HIVE-5867 ]
          Xuefu Zhang made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Release Note Document the new feature.
          Fix Version/s 0.14.0 [ 12326450 ]
          Resolution Fixed [ 1 ]
          Tags TODOC14
          Navis made changes -
          Attachment HIVE-6561.4.patch.txt [ 12650709 ]
          Navis made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Navis made changes -
          Attachment HIVE-6561.3.patch.txt [ 12643683 ]
          Xuefu Zhang made changes -
          Link This issue relates to HIVE-5160 [ HIVE-5160 ]
          Navis made changes -
          Attachment HIVE-6561.2.patch.txt [ 12639118 ]
          Navis made changes -
          Remote Link This issue links to "review board (Web Link)" [ 14795 ]
          Navis made changes -
          Attachment HIVE-6561.1.patch.txt [ 12638408 ]
          Xuefu Zhang made changes -
          Field Original Value New Value
          Assignee Xuefu Zhang [ xuefuz ] Navis [ navis ]
          Xuefu Zhang created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development