Impala large Data Volume query/tmp/impala-scratch Create exception

Source: Internet
Author: User

The following error is reported when using Impala to query distinct with large data volume

Warnings:create file/tmp/impala-scratch/24414dab2c19caca:e54b206c5ab149d_24414dab2c19caca:e54b206c5ab149f_ 91001337-9d70-4c93-84ce-e7916c1ae804 failed with errno=2 Description=error (2): No such file or Directorybackend 4:Create File/tmp/impala-scratch/24414dab2c19caca:e54b206c5ab149d_24414dab2c19caca:e54b206c5ab149f_ 91001337-9d70-4c93-84ce-e7916c1ae804 failed with errno=2 Description=error (2): No such file or directory

Consult the documentation know that Impala will use disk to save data when processing large amounts of data

  • By default, intermediate files used during large sort, join, aggregation, or analytic function operations is stored in th E-Directory/tmp/impala-scratch. These files is 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 theImpaladDaemon 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 is on the local filesystem, not in HDFS. Might specify different directory paths for different hosts, depending on the capacity and speed of the available stor Age devices. Impala won't start if it cannot create or read and write files in the"Scratch"Directory. If there is less than 1 GB free on the filesystem where the. Directory resides, Impala still runs, but writes a warning me Ssage to its log.


Create a/tmp/impala-scratch directory directly on each Impalad node and give read and write permissions

Mkdir/tmp/impala-scratch chmod 777/tmp/impala-scratch


This article from the "Down-to-earth, look at the Stars" blog, please be sure to keep this source http://xubcing.blog.51cto.com/3502962/1685156

Impala large Data Volume query/tmp/impala-scratch Create exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.