Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.