Tez控制输出的文件是否压缩并指定文件名
2015-08-31 14:08
281 查看
在如下的代码后:
加入:
更精确的控制,可以参看“org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K, V>“类。
TezConfiguration tezConf; if (conf != null) { tezConf = new TezConfiguration(conf); } else { tezConf = new TezConfiguration(); }
加入:
/** * decide outputfile whether to be compress; */ tezConf.setBoolean(FileOutputFormat.COMPRESS, tezConf.getBoolean("isCompress", false)); /** * decide outputfile name; */ tezConf.set("mapreduce.output.basename", tezConf.get("fileName", "Tez.log"));
更精确的控制,可以参看“org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K, V>“类。
相关文章推荐
- 阿里云自定义监控
- 【Loadrunner】端口号占满问题,另类的解决方法
- sqlserver2008如何导入mdf,ldf文件
- linux删除符合条件的文件
- Android关闭或打开软键盘
- 硬件十万个为什么——运放篇(十一)关于单电源运放应用
- 二叉树的其他操作
- setInterval和clearInterval
- Core Animation系列之CADisplayLink(转)
- PHP笔记
- IIS负载均衡
- POI实战-java开发excel详解(第六章 附录)
- java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- 菜鸟学习Spring——60s利用JoinPoint(连接点)获取参数的值和方法名称()
- 数据挖掘系列(1)关联规则挖掘基本概念与Aprior算法
- 如何在Eclipse中自动添加注释
- 数据挖掘书籍
- Kernel panic - not syncing: Attempted to kill init
- 网络安全与病毒防范
- android判断手机是否连网