mysql通过sqoop导入到hbase中时数据量为1000w时出现Incorrect key file for table '/tmp/#sql_458_0.MYI'; try to repair it
2015-12-02 15:34
861 查看
问题:mysql通过sqoop导入到hbase中时数据量为1000w时出现Incorrect key file for table '/tmp/#sql_458_0.MYI'; try to repair it,数据量为100w等时没该问题
分析:出现该问题时因为mysql的临时目录(默认为/tmp)太小:我的mysql时在线安装的(sudo apt-get install)
解决方法:
参考:http://blog.sina.com.cn/s/blog_4c197d420101bdn9.html
但是修改my.cnf中的变量时,在MySQL中还有一些特殊的全局变量(例如log_in tmpdir version datadir),在MySQL服务实例运行期间它们的值不能动态修改,不能使用set命令进行重新设置的,这种变量称为静态变量,数据库管理员只能在my.cnf中对静态变量的值,并且只能在root用户下,即使sudo gedit /etc/mysql/my.cnf方法修改过来也无法启动mysql,只有切换到root用户下,环境变量才会切换,才能对该文件静态变量修改生效。
分析:出现该问题时因为mysql的临时目录(默认为/tmp)太小:我的mysql时在线安装的(sudo apt-get install)
解决方法:
参考:http://blog.sina.com.cn/s/blog_4c197d420101bdn9.html
但是修改my.cnf中的变量时,在MySQL中还有一些特殊的全局变量(例如log_in tmpdir version datadir),在MySQL服务实例运行期间它们的值不能动态修改,不能使用set命令进行重新设置的,这种变量称为静态变量,数据库管理员只能在my.cnf中对静态变量的值,并且只能在root用户下,即使sudo gedit /etc/mysql/my.cnf方法修改过来也无法启动mysql,只有切换到root用户下,环境变量才会切换,才能对该文件静态变量修改生效。
相关文章推荐
- RAID , LVM , 配置静态IP 浅析
- poj1273--Drainage Ditches(最大流Edmond-Karp算法 邻接表实现)
- show table detail
- ECS服务器ssh登录提示“Permission denied, please try again”
- linker command failed with exit code 1 (use -v to see
- main(int argc, char*argv[])函数里参数的含义
- [AI]模拟退火解决TSP问题(含源码)
- 人工智能(AI)资料大全
- 12月2号 Vim编辑器和main函数说明
- HDU 1023 Train Problem II
- void main()误区
- 约束(constrain)
- hdu 3376 Matrix Again 最大费用流
- copy,retain,assign,strong,weak的区别
- 使用servlet 3.0 新特性 @WebServlet(urlPatterns = "/brainT") 访问 url,服务器报404错误
- POJ 2110 Mountain Walking 二分+bfs
- grails 统一认证加单点登录
- ERROR: transport error 202: bind failed: Address already in use
- cookie中domain和path的解释
- MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main re