Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2300175
  • 博文数量: 276
  • 博客积分: 5998
  • 博客等级: 大校
  • 技术积分: 5175
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 14:43
文章分类

全部博文(276)

文章存档

2014年(25)

2013年(11)

2012年(69)

2011年(167)

2010年(4)

分类: 大数据

2014-04-03 14:17:52

在用Rhadoop运行mapreduce时报以下错误
> small.ints = to.dfs(1:10)
14/04/03 09:51:28 INFO util.NativeCodeLoader: Loaded the native-hadoop library
14/04/03 09:51:28 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
14/04/03 09:51:28 INFO compress.CodecPool: Got brand-new compressor
Warning messages:
1: In rmr.options("backend") :
  Please set an HDFS temp directory with rmr.options(hdfs.tempdir = ...)
2: In rmr.options("hdfs.tempdir") :
  Please set an HDFS temp directory with rmr.options(hdfs.tempdir = ...)
3: In rmr.options("backend") :
  Please set an HDFS temp directory with rmr.options(hdfs.tempdir = ...)


解决方法:指定hadoop tmp目录也就是hadoop.tmp.dir 参数指定的目录
rmr.options(hdfs.tempdir ='/export/hadoop/tmp')
阅读(7787) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

zygwpw2014-04-06 09:21:56

Foreign diploma:  www.jfjtwpw.com  www.zygwpw.com  www.gwwp1996.com