求大神帮忙指点一下,困扰几天了。
workflow.xml内容如下:
<workflow-app name="TestSqoop" xmlns="uri:oozie:workflow:0.5">
<start to="sqoop-7cd2"/>
<kill name="Kill">
<message>操作失败,错误消息[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="sqoop-7cd2">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<prepare>
<delete path="${nameNode}/user/hive/warehouse/login"/>
</prepare>
<command>import --connect jdbc:mysql://192.168.1.61:3306/Aatest --username writeuser --password writeuser --table login --fields-terminated-by ',' --target-dir /user/hive/warehouse/login --hive-import -m 1</command>
</sqoop>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>
</workflow-app>
job.properties内容如下:
oozie.use.system.libpath=True
nameNode=hdfs://CDHMaster:8020
jobTracker=CDHMaster:8032
日志信息如下: