使用語句mysql> load data local infile '/home/hadoop/tmpdata/employees.tsv' into table employees fields terminated by '\t' lines terminated by '\n';
ERROR 1148 (42000): The used command is not allowed with this MySQL version
解決辦法1:在/etc/mysql/mycnf 中,添加一句local-infile=1,重啓mysql服務 sudo restart mysql
解決辦法2:退出,重新進入 mysql --local-infile=1 -u username -p