zoukankan      html  css  js  c++  java
  • Error writing file '/tmp/MLLGyECY' (Errcode: 28

    mysql 的一个从库报错:

    Could not execute Write_rows event on table xxx.xxxx_tmp_tj; Error writing file '/tmp/MLLGyECY' (Errcode: 28 - No space left on device), Error_code: 3; Error writing file 'mysql-bin' (errno: 28 - No space left on device), Error_code: 1026; Writing one row to the row-based binary log failed, Error_code: 1534; handler error HA_ERR_RBR_LOGGING_FAILED; the event's master log mysql-bin.003482, end_log_pos 119034357
    Replicate_Ignore_Server_Ids:

    df -h 查看 /tmp 目录6.3G,应该是大事务导致需要很大的临时空间,导致6.3G不够用。所以报错。

    修改my.cnf, 在 [mysqld] 下面加上配置项:

    tmpdir = /data/tmp 

    重启mysqld.

      解决问题。

     官网文档 关于 tmpdir 的说明:

    The path of the directory to use for creating temporary files. It might be useful if your default /tmp directory resides on a partition 
    that is too small to hold temporary tables. This option accepts several paths that are used in round-robin fashion. Paths should be 
    separated by colon characters (:) on Unix and semicolon characters (;) on Windows. If the MySQL server is acting as a replication slave, 
    you should not set --tmpdir to point to a directory on a memory-based file system or to a directory that is cleared when the server host 
    restarts. For more information about the storage location of temporary files, see Section B.5.3.5, “Where MySQL Stores Temporary Files”. 
    A replication slave needs some of its temporary files to survive a machine restart so that it can replicate temporary tables or LOAD DATA
     INFILE operations. If files in the temporary file directory are lost when the server restarts, replication fails.
    

      

  • 相关阅读:
    hiveserver2 with kerberos authentication
    python Basic usage
    python Quicksort demo
    Python HeapSort
    mrunit for wordcount demo
    CCDH证书
    Hadoop question list
    Hadoop Yarn core concepts
    Hadoop Resource
    Hadoop could not find or load main class
  • 原文地址:https://www.cnblogs.com/digdeep/p/12403854.html
Copyright © 2011-2022 走看看