摘要:
方法一:项目目录下,找到存放jar包的目录(一般为lib),将里面的jar包全选中,右键,add as library 方法二:File-Project Structure,按照图二的红色放款添加依赖,点击+号后,选择JARs or directories,开始选择项目中存放jar包的目录,全选中j 阅读全文
摘要:
文件数目过多,会给HDFS带来压力,并且会影响处理效率,可以通过合并Map和Reduce的结果文件来消除这样的影响: set hive.merge.mapfiles = true ##在 map only 的任务结束时合并小文件 set hive.merge.mapredfiles = false 阅读全文
摘要:
#!/bin/bash id=`hive -e "set hive.cli.print.header=false;select id,name from test.test where name = 'wangwu' group by id,name;"` echo echo $id echo 阅读全文