cloudera - Hue UI Sqoop through Oozie - Passing Parameter values -


i trying pass server details , username , password thorugh job.properties files in sqoop action in hue oozie.

we on sqoop 1.4.5-cdh5.3.3

if run command on cli runs fine, on hue oozie workflow fails

command in sqoop action ui:

list-databases --connect "jdbc:sqlserver://${dbserver}:140" --      username=edm_hadoop_user --password=${dbpass} 

scenario:

i have job.properties files has below info in , present along workflow.xml file in hdfs.

dbserver=facets    dbport=140    dbuser=*******    dbpass=******* 
  1. if populate "parms" , test values 'dbserver' , 'dbpass' works fine, dont want since need schedule workflow , want run automatically picking server , password details file

  2. if add "job properties" this

    property name = dbserver value=${dbserver} , wise dbpass fails error cannot resolve dbserver means not sustituting values job.properties file.

  3. if add "files" , specify job.properties file location in not picking values either , job fails.

i have created job.xml file above values in properties , gave file name in "job xml" workflow failed.

how should specify parameters if want run sqoop action workflow hue ui oozie ?

or should doing creating workflow.xml , job.properties file separately , call them using shell action on oozie hue ?


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -