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



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

Answer / Sachin Gupta

Yes, you can run Unix shell commands from Hive using the ! operator. Here's an example:nn!ls /path/to/your/directory;nThis command lists all files and directories in the specified path.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Hive Interview Questions

How to add the partition in existing table without the partition table?

1 Answers  


Why is Hive not suitable for OLTP systems?

1 Answers  


What is Hive ?

1 Answers  


What is a Hive Metastore?

1 Answers  


Explain Data Type Conversion in Hive?

1 Answers  


What will be the result when you do cast(‘abc’ as int)?

1 Answers  


List the various options available with the Hive command?

1 Answers  


What is SerDe in Apache Hive ?

1 Answers  


What is Hive Present Version ?

1 Answers  


How to load data into table created in hive ?

1 Answers  


In case of embedded Hive, can the same metastore be used by multiple users?

1 Answers  


What is CTE Table in Hive?

1 Answers  


Categories