Can hive queries be executed from script files? How?



Can hive queries be executed from script files? How?..

Answer / Gurmeet Singh

Yes, you can execute Hive queries from script files. Save your SQL statements in a file with a `.sql` extension, and then run the file using the Hive CLI (Command Line Interface) or any other Hive client. Here's an example:

```bash
hive -f script_file.sql
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Hive Interview Questions

What are the file formats that Hive supports and can use be used for storage?

1 Answers  


CONCAT function in Hive with Example?

1 Answers  


What types of costs are associated in creating index on hive tables?

1 Answers  


What is the functionality of Query Processor in Apached Hive ?

1 Answers  


Explain the functionality of object-inspector.

1 Answers  


How to Rename a table in Hive

1 Answers  


What is a generic udf in hive?

1 Answers  


How to change a column data type in Hive?

1 Answers  


How can client interact with Hive?

1 Answers  


LOWER or LCASE function in Hive with example?

1 Answers  


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

1 Answers  


How will you convert the string ’51.2’ to a float value in the price column?

1 Answers  


Categories