Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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
Highlighted

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

@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.

Highlighted

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

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.

Don't have an account?
Coming from Hortonworks? Activate your account here