得到错误:似乎您已经通过oozie启动了sqoop作业,并且禁用了sqoop.metastore.clent.record.password。我已经在sqoop-site.xml中设置了sqoop.metastore.client.record.password true
。
也显示
java.sql.SQLException:用户被拒绝访问 'root'@'slnxhadoop02'(使用密码:否) java.sql.SQLException:用户被拒绝访问 'root'@'slnxhadoop02'(使用密码:否)
我们有4个节点,并且在mysql中将所有特权赋予它们。
我的oozie工作文件文档:
<workflow-app xmlns = "uri:oozie:workflow:0.4" name = "simple-Workflow">
<start to = "run_sqoop_job" /> <!-- step 1 -->
<action name = "run_sqoop_job">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
<job-tracker>${resourceManager}</job-tracker>
<name-node>${nameNode}</name-node>
<command>job --meta-connect "jdbc:hsqldb:hsql://slnxhadoop03:16001/sqoop" --exec samplejob</command> </sqoop> <ok to = "end"/>
<error to = "fail"/>
</action>
<kill name = "fail">
<message>workflow fail</message>
</kill>
<end name = "end"/>
</workflow-app>
属性文件:
resourceManager = slnxhadoop01:8050
nameNode = hdfs://slnxhadoop01:8020
oozie.wf.application.path= hdfs://slnxhadoop01:8020/shared/emproot/workflow/sqoop_job_run.xml oozie.use.system.libpath = true