嗨,我正尝试将所有表从所有模式从Oracle DB导入到HDFS。
这是我的脚本:
sqoop导入所有表-Dmapreduce.job.user.classpath.first = true -Dhadoop.security.credential.provider.path = jceks://x.jceks --connect jdbc:oracle:thin:@ xxxx:1521 / yyyy-用户名xxxx-密码xxxx --warehouse-dir / data-warehouse / xxxx --as-avrodatafile --compression-codec snappy --autoreset-to-one-mapper
当我运行此脚本时,没有出现任何错误,也没有任何作业正在启动。
输出:
Warning: /usr/hdp/2.6.2.0-205/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
find: failed to restore initial working directory: Permission denied
18/08/11 08:32:51 INFO sqoop.Sqoop: Running **Sqoop version: 1.4.6.2.6.2.0-205**
18/08/11 08:32:51 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
18/08/11 08:32:51 INFO oracle.OraOopManagerFactory: Data Connector for Oracle and Hadoop is disabled.
18/08/11 08:32:51 INFO manager.SqlManager: Using default fetchSize of 1000
18/08/11 08:32:53 INFO manager.OracleManager: Time zone has been set to IST
答案 0 :(得分:0)
似乎在sqoop中配置的用户没有足够的特权来查询和从Oracle导出数据。请检查连接并从命令行查询到Oracle数据库。
关于!!!