1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 03:42:12 +02:00
tldr/pages/common/hive.md
2020-10-19 17:28:59 +01:00

20 lines
438 B
Markdown

# hive
> CLI 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 --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}}`