diff --git a/pages/common/hive.md b/pages/common/hive.md new file mode 100644 index 000000000..805edcbab --- /dev/null +++ b/pages/common/hive.md @@ -0,0 +1,20 @@ +# hive + +> CLI tool for Apache Hive. +> More information: . + +- 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}}`