Attempted to generate class with no column
2016-01-26 18:40
253 查看
14/12/23 04:31:03 ERROR tool.ImportTool: Imported Failed: Attempted to generate class with no column
1、导致该问题的原因是
sqoop import --connect jdbc:oracle:thin:@192.168.1.136:1521/jist --username UAP --password uap --table YKBZ_DETAIL --hive-import
中将用户名小写,
解决办法:将小写uap改为大写UAP
Sqoop 把数据从Oracle中迁移到Hive中时发生错误:
这个原因是因为:
需要把用户名大写:
1、导致该问题的原因是
sqoop import --connect jdbc:oracle:thin:@192.168.1.136:1521/jist --username UAP --password uap --table YKBZ_DETAIL --hive-import
中将用户名小写,
解决办法:将小写uap改为大写UAP
Sqoop 把数据从Oracle中迁移到Hive中时发生错误:
[hadoop@Master ~]$ sqoop import --connect jdbc:oracle:thin:@192.168.6.77:1521:orcl --username micmiu -P --table T_DEMO --warehouse-dir /user/sqoop --hive-import --create-hive-table Warning: /usr/lib/hcatalog does not exist! HCatalog jobs will fail. Please set $HCAT_HOME to the root of your HCatalog installation. Enter password: 14/04/11 11:30:18 INFO tool.BaseSqoopTool: Using Hive-specific delimiters for output. You can override 14/04/11 11:30:18 INFO tool.BaseSqoopTool: delimiters with --fields-terminated-by, etc. 14/04/11 11:30:18 WARN tool.BaseSqoopTool: It seems that you've specified at least one of following: 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --hive-home 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --hive-overwrite 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --create-hive-table 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --hive-table 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --hive-partition-key 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --hive-partition-value 14/04/11 11:30:18 WARN tool.BaseSqoopTool: --map-column-hive 14/04/11 11:30:18 WARN tool.BaseSqoopTool: Without specifying parameter --hive-import. Please note that 14/04/11 11:30:18 WARN tool.BaseSqoopTool: those arguments will not be used in this session. Either 14/04/11 11:30:18 WARN tool.BaseSqoopTool: specify --hive-import to apply them correctly or remove them 14/04/11 11:30:18 WARN tool.BaseSqoopTool: from command line to remove this warning. 14/04/11 11:30:18 INFO tool.BaseSqoopTool: Please note that --hive-home, --hive-partition-key, 14/04/11 11:30:18 INFO tool.BaseSqoopTool: hive-partition-value and --map-column-hive options are 14/04/11 11:30:18 INFO tool.BaseSqoopTool: are also valid for HCatalog imports and exports 14/04/11 11:30:18 INFO manager.SqlManager: Using default fetchSize of 1000 14/04/11 11:30:18 INFO tool.CodeGenTool: Beginning code generation 14/04/11 11:30:19 INFO manager.OracleManager: Time zone has been set to GMT 14/04/11 11:30:19 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM T_DEMO t WHERE 1=0 14/04/11 11:30:19 ERROR tool.ImportTool: Imported Failed: Attempted to generate class with no columns!
这个原因是因为:
-usernamemicmiu 用户名这个参数,
需要把用户名大写:
-usernameMICMIU ,再执行就ok了。
相关文章推荐
- 关于xcode删除storyboard文件后老爸教的
- IDL_原函数分析2
- 【Apache Mina2.0开发之一】搭建Apache Mina框架并实现Server与Client端的简单消息传递!
- 第十一届“蓝狐网络杯”湖南省大学生计算机程序设计竞赛
- ORA-01810格式代码出现两次的解决方案
- Python 6.2 单元测试
- 密钥分散算法简析
- kdtree
- hdu1166题解
- 微信模糊照片破解方法(程序猿专用)
- 我的书单
- ubuntuserver 读取优盘数据
- 如何通过阅读源代码了解 vmstat 中的指标
- 2015年的总结
- 朋友圈红包图片0元看-不谢
- 集群(heartbeat)搭建
- MyCat 学习笔记 第七篇.数据分片 之 按数据范围分片
- Swift语法_错误处理&&断言
- hdu 2159 Fate (二维完全背包)
- hadoop 2.6 Trash清除机制源代码分析