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

Ability to execute external scripts from within HiveCLI

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Clients
    • None
    • Hide
      source was added in HIVE-1451
      Show
      source was added in HIVE-1451
    • cli script source start @

    Description

      I would like to be able to execute external query scripts from within the HiveCLI.
      For example:

      hive> source awesome_script.q
      ...
      hive> source /Users/larry/larrys_awesome_script.q
      ...
      hive> source hdfs://localhost/user/bob/lame_script.q
      ...
      

      In other words, the 'source' command will read input from the specified
      file and execute it as though it had been typed on the keyboard.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cwsteinbach Carl Steinbach
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: