我在用sqoop操作在oozie中创建工作流时遇到问题,返回消息Erros:
Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]
我的workflow.xml是:
<workflow-app xmlns='uri:oozie:workflow:0.5' name='sqoop-workflow'>
<start to='sqoop-load' />
<action name="sqoop-load">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>${queueName}</value>
</property>
</configuration>
<command>import --hbase-create-table --hbase-table <table_name> --column-family <family_name> --hbase-row-key <key_row> --connect "jdbc:sqlserver://<server>:<port>;database=<database>;username=<user>;password=<pass>" --query "SELECT * FROM <table_name> WHERE \$CONDITIONS AND <column_name> != ''" -m 1</command>
</sqoop>
<ok to="end" />
<error to="fail" />
</action>
<kill name="fail">
<message>Sqoop export failed, error
message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name='end' />
</workflow-app>
和我的job.properties:
nameNode=hdfs://localhost:8020
jobTracker=localhost:8032
queueName=default
examplesRoot=examples
oozie.use.system.libpath=true
oozie.libpath=/user/oozie/share/lib
oozie.wf.application.path=${nameNode}/user/${user.name}/
我的'oozie.libpath'包含用于连接SQL Server的mssql-jdbc-6.4.0.jre7.jar,而'oozie.wf.application.path'具有我的工作流程.xml
我使用以下命令运行workflow.xml:
oozie job -oozie http://localhost:11000/oozie -config job.properties -run
OBS:我在Clodeura VM中运行所有软件。