欢迎投稿

今日深度:

hive 函数,

hive 函数,


-e 引号引起sql
-f 后跟文件,sql脚本
-i 初始化文件,hive启动时跟的
> a.txt,执行之后,将结果保持到文件中
------------------------------------------------
quit,exit:退出
reset:将命令重置
set <key>=<value>:设置值
set:将hive所有的键值都打印出来      Prints a list of configuration variables that are overridden by the user or Hive.
set -v:(看结果和set差不多)Prints all Hadoop and Hive configuration variables.
add FILE[S] <filepath> <filepath>* 
add JAR[S] <filepath> <filepath>* 
add ARCHIVE[S] <filepath> <filepath>*:添加一个或者多个文件,jar 包,档案 到分布式缓存的列表资源。
Adds one or more files, jars, or archives to the list of resources in the distributed cache. See Hive Resources for more information.
list file[s]、jar[s]、archive[s]:列出分布式缓存上的文件、jar包或者archive。


list file[s]、jar[s]、archive[s] <filepath>:检查 路径上的文件,jar,archive是否已经添加到了分布式缓存系统。
delete file[s]、jar[s]、archive[s] <filepath>:移除路径上的file,jar,archive.


delete FILE[S] <ivyurl> <ivyurl>* 
delete JAR[S] <ivyurl> <ivyurl>* 
delete ARCHIVE[S] <ivyurl> <ivyurl>*:移除已经添加到分布式缓存<ivyurl>上的文件,jar,archive。
! <command>:执行一个shell命令。
dfs <dfs command>:执行一个dfs命令。
查询语句:执行一个hive查询,并将结果打印在标准输出流。
source file<filepath>:执行一个脚本文件在CLI里。
complie '<groovy string>' as GROOVY NAMED <name>:下列在groovy 中的代码被编译并且被使用作为一个udf。




翻译自https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Commands。

用来查询。

CLI:command line interface,命令行接口

udf:hive对外函数的一种。




www.htsjk.Com true http://www.htsjk.com/hive/40972.html NewsArticle hive 函数, -e 引号引起sql-f 后跟文件,sql脚本-i 初始化文件,hive启动时跟的 a.txt,执行之后,将结果保持到文件中------------------------------------------------quit,exit:退出reset:将命令重置se...
相关文章
    暂无相关文章
评论暂时关闭