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

Beeline should accept -i option to Initializing a SQL file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0, 0.11.0, 0.12.0
    • 0.14.0
    • None
    • None
    • Document the new feature.
    • 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 Ryu
        2. HIVE-6561.3.patch.txt
          11 kB
          Navis Ryu
        3. HIVE-6561.2.patch.txt
          11 kB
          Navis Ryu
        4. HIVE-6561.1.patch.txt
          10 kB
          Navis Ryu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: