adspace


Can we run unix shell commands from the hive? Give example?

Answer Posted / Laxmi Dixit

Yes, you can run Unix shell commands from Apache Hive using the ! operator. For example: SELECT !ls /tmp; This command will list all files in the /tmp directory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Hive variable? What for we use it?

880


Can We Change settings within Hive Session? If Yes, How?

859


How can I delete the above index named index_bonuspay?

807


When we are using queries instead of scripting?

800


What are the different types of tables available in Hive?

767


What is the stable version of Hive ?

2695


How to skip header rows from a table in Hive?

906


Where does the data of a Hive table gets stored?

750


When to use explode in Hive?

832


When to choose "External Table" in Hive?

867