WestCoastProjects
WestCoastProjects

Reputation: 63201

Hive command line CLI history

I am not seeing any history file - or being able to retrieve any history from past CLI Sessions at the command prompt.

Is there a setting to enable this?

Upvotes: 3

Views: 15499

Answers (4)

Vijay Berwal
Vijay Berwal

Reputation: 1

This worked for me

 cat .beeline/history

Upvotes: 0

Gouri Mahapatra
Gouri Mahapatra

Reputation: 139

Log in to the terminal type "cat .beeline".

Upvotes: 0

Prakash Singh
Prakash Singh

Reputation: 417

type on the terminal "cat .hivehistory"

not able to see then

First check your location by "pwd" if you are in home check with ls -a if you are not able to see go to desktop path and you can type on the terminal "cat .hivehistory"

Upvotes: 3

vijay kumar
vijay kumar

Reputation: 2049

By default - Hive saves the last 100,00 lines of commands lines into a file $HOME/.hivehistory source: Programming in hive -> chapter 2 : getting started -> command history

For me .hivehistory is available. hope this helps

Upvotes: 5

Related Questions