Some question on Hive CLI

Dear all,

I have two quick questions on Hive CLI:

  1. Can I use vi directly from the Hive command line, s.t. I can save my commands?
  2. Is there a possibility after a line break to move through the previous lines to make corrections etc?

Thanks
c14

Hi,

Please find my answers below

Can I use vi directly from the Hive command line, s.t. I can save my commands?

I do not think you can run vi commands directly from Hive. Though you can run Linux commands by adding “!” as a prefix. To list all the files in your current working directory, command will be !ls

Is there a possibility after a line break to move through the previous lines to make corrections etc?

I do not think it will be possible.

1 Like

@clog14

I would suggest to go with Hue Hive query editor.

1 Like