mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 23:58:19 +00:00
Update cheatsheets
This commit is contained in:
25
hive
Normal file
25
hive
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user