Files
cheatsheet-tldr/tldr/hive
2025-12-04 00:21:33 +00:00

26 lines
536 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# hive
> Tool for Apache Hive.
> More information: <https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Cli>.
- Start a Hive interactive shell:
`hive`
- Run HiveQL:
`hive -e "{{hiveql_query}}"`
- Run a HiveQL file with a variable substitution:
`hive {{[-d|--define]}} {{key}}={{value}} -f {{path/to/file.sql}}`
- Run a HiveQL with HiveConfig (e.g. `mapred.reduce.tasks=32`):
`hive --hiveconf {{conf_name}}={{conf_value}}`