hive导出到mysql报错日志如下,验证mysql用户名密码无误
[hadoop@hdfszz-1 ~]$ mysql -uhive -hlocalhost -P3306 -phive
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1768
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| hive |
| mysql |
| test |
+--------------------+
4 rows in set (0.04 sec)
mysql> use test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| sogoulog |
| testsqoop |
+----------------+
2 rows in set (0.00 sec)
mysql>
[hadoop@hdfszz-1 bin]$ ./sqoop export --connect jdbc:mysql://localhost:3306/test --username hive --password hive --table sogoulog --export-dir /user/hive/warehouse/sogoulog/date=20151001
Warning: /home/hadoop/app/sqoop-1.4.5-cdh5.4.5/bin/../../hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /home/hadoop/app/sqoop-