Impala create file /tmp/impala-scratch 报错

在处理大数据量时,Impala遇到错误,原因是其默认使用/tmp/impala-scratch目录存储中间文件。当该目录不存在或权限不足时,Impala无法运行。解决方案是手动在每个impalad节点上创建该目录并设置读写权限。
摘要由CSDN通过智能技术生成

背景

使用impala对大数据量进行处理时出现如下错误

Create file /tmp/impala-scratch/XXX failed with errno=2 description=Error(2): No such file or directory

原因

查资料发现impala在大数据量处理时会用到磁盘保存中间数据

By default, intermediate files used during large sort, join, aggregation, or analytic function operations are stored in the directory /tmp/impala-scratch. These files are removed when the operation finishes. (Multiple concurrent queries can perform operations that use the “spill to disk” technique, without any name conflicts for these temporary files.) You can specify a different location by starting the impalad daemon with the --scratch_dirs=“path_to_directory” configuration option or the equivalent configuration option in the Cloudera Manager user interface. You can specify a single directory, or a comma-separated list of directories. The scratch directories must be on the local filesystem, not in HDFS. You might sp

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值