Support Questions

Find answers, ask questions, and share your expertise

I Cant run unix shell commands from the hive? It doesnt give any respond.

New Contributor

can anyone please help. How to do this?

2 REPLIES 2

@sims soni,

In Beeline you can use the below format

!sh ls -al

.

In hive shell you can use

!ls -al

.

If this works for you, please take a moment to login and "Accept" the answer.

New Contributor

Just before the command use the ! mark, we run unix shell commands from the hive.

For example-

! pwd at hive prompt will list the current directory.