cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.17k stars 366 forks source link

hue4.3- Workflow cannot submit sqoop tasks #792

Closed chinayangze closed 5 years ago

chinayangze commented 5 years ago

hue4.3- Workflow cannot submit sqoop tasks

Workflow submission failed: 'statement'

wzxwf commented 5 years ago

this is a bug . Action.data['properties']['statement'] was not found in action.data
vi /opt/cloudera/parcels/CDH-6.1.0-1.cdh6.1.0.p0.770702/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py

elif action.data['type'] in ('spark', 'spark-document') or ( action.data['type'] in ('sqoop', 'sqoop-document') and action.data['properties']['statement'] in '--hive-import'):

I changed 'action.data['properties']['statement'] in '--hive-import')' to ' action.data['properties']['command'] in '--hive-import') '

It works fine

wing2fly commented 5 years ago

It has been fixed in https://issues.cloudera.org/browse/HUE-8717